mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
@@ -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