1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #20075 from eallrich/20074-fix-docker-inspect-command

Adding --format= flag
This commit is contained in:
Sebastiaan van Stijn 2016-02-07 16:34:12 +00:00
commit 534bad6010

View file

@ -209,7 +209,7 @@ To get information on a container use its ID or instance name:
To get the IP address of a container use:
$ docker inspect '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' d2cc496561d6
$ docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' d2cc496561d6
172.17.0.2
## Listing all port bindings