Adding --format= flag
Signed-off-by: Evan Allrich <evan@unguku.com> Upstream-commit: 78ba5d58e6280f879fa45dd4c73f8284dd4ec031 Component: engine
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user