$ docker inspect --format='{{.NetworkSettings.IPAddress}}' container_name
Retrieve the IP address of a running container.