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?

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?

You should try this one:

docker inspect --format='{{ $n := .Name }}{{range .NetworkSettings.Networks}}{{ print .IPAddress "\t" $n "\n"}}{{end}}' $(sudo docker ps -q)
Looking for help?
If you are looking for some help or want a quick chat, please head over to the Discord Community!