Get the IP address of your Docker containers
Have you ever looked for the local network IP address of one of your Docker container? Trying to connect to it from another one?
Have you ever looked for the local network IP address of one of your Docker container? Trying to connect to it from another one?
You should try this one:
docker inspect --format='{{ $n := .Name }}{{range .NetworkSettings.Networks}}{{ print .IPAddress "\t" $n "\n"}}{{end}}' $(sudo docker ps -q)