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

Adding --format= flag

Signed-off-by: Evan Allrich <evan@unguku.com>
This commit is contained in:
Evan Allrich 2016-02-06 09:39:20 -06:00
parent 78f2b8d87d
commit 78ba5d58e6

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: 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 172.17.0.2
## Listing all port bindings ## Listing all port bindings