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/):