How do you find a container's IP address?

BeginnerConceptNetworking
Answer
docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}} {{end}}' web
docker exec web hostname -i

You generally should not hardcode IPs; use names. IPs change on restart unless set with --ip on a user-defined network with a configured subnet.

All Docker questions Roadmap: Docker & containers

More on Networking