fix to get single IPAddress

This commit is contained in:
Ziv Dreyfuss 2017-08-30 17:29:32 -04:00
parent f7a679fd34
commit 8e4a7df236

View file

@ -606,7 +606,7 @@ docker commit -run='{"Cmd":["postgres", "-too -many -opts"]}' $(dl) postgres
### Get IP address ### 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/): or install [jq](https://stedolan.github.io/jq/):