From 8e4a7df23695898141b5e0e9bb38c4708b618c71 Mon Sep 17 00:00:00 2001 From: Ziv Dreyfuss Date: Wed, 30 Aug 2017 17:29:32 -0400 Subject: [PATCH] fix to get single IPAddress --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 66edf1b..bddc05f 100644 --- a/README.md +++ b/README.md @@ -606,7 +606,7 @@ docker commit -run='{"Cmd":["postgres", "-too -many -opts"]}' $(dl) postgres ### Get IP address ``` -docker inspect $(dl) | grep IPAddress | cut -d '"' -f 4 +docker inspect $(dl) | grep -wm1 IPAddress | cut -d '"' -f 4 ``` or install [jq](https://stedolan.github.io/jq/):