In a nodejs application i have the following command to find the IP of a docker container:
docker inspect -f \'{{range.NetworkSettings.Networks}}{{.IPAddress}