Find the IP Address of a running Docker container

Problem

You would like to know the IP Address of a running Docker container.

Solution

Use the following to find out the IP Address by replacing the container_name with the actual container name:

docker inspect -f '{{ .NetworkSettings.IPAddress }}' container_name