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:
parent
78f2b8d87d
commit
78ba5d58e6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue