For system, network and cloud administrators

How to view the IP of a Docker container

In order to view the IP of a Docker container, you can execute the following command:

docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' container-ID-or-name