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
Alternatively:
run docker ps
to get the container ID and rundocker inspect [container ID] | grep IPAddress