Docker Community Forums

Share and learn in the Docker community.

How can I get a container’s IP address from the host?


(Nick Hazlett) #1

A quick and easy method to find the IP address of a container from the host can be achieved by running:

  • docker inspect --format '{{ .NetworkSettings.IPAddress }}' ${CID}