Updated "Get IP Address"

Added verification from the docker inspect documentation https://docs.docker.com/reference/commandline/cli/#inspect
This commit is contained in:
Trenton Broughton 2015-02-18 14:02:57 -05:00
parent 198ab7cce6
commit 9a205df6fc

View file

@ -354,7 +354,7 @@ cd jq-1.3
docker inspect `dl` | jq -r '.[0].NetworkSettings.IPAddress'
```
or (this is unverified)
or using a [go template](https://docs.docker.com/reference/commandline/cli/#inspect)
```
docker inspect -f '{{ .NetworkSettings.IPAddress }}' <container_name>