Get Docker Container IP

Tags:

This is a quick way to get the IP address of a docker container (webserver, in this example). I find I use this frequently to connect to my Database CLI. docker inspect -f ‘{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}’ webserver