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

Adding --format= flag
Upstream-commit: 534bad6010fffd66ed07a84eaf96d8b63cd51ecf
Component: engine
This commit is contained in:
Sebastiaan van Stijn
2016-02-07 16:34:12 +00:00
+1 -1
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