$ docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' container_name
Retrieve the IP address of a running container with multiple networks.