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

Leave a Reply

Your email address will not be published. Required fields are marked *