August 2018
Intermediate to advanced
352 pages
12h 30m
English
With the -f | --format option, we can use the Go (programming language) template to get this specific information. The following command will give us an IP address for the container:
$ docker container inspect \
--format='{{.NetworkSettings.IPAddress}}' $ID
172.17.0.2
Read now
Unlock full access