Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save JoaoVagner/c8ac25e14676f54d02e493f7425a5efe to your computer and use it in GitHub Desktop.
Save JoaoVagner/c8ac25e14676f54d02e493f7425a5efe to your computer and use it in GitHub Desktop.
get all containers ip
docker inspect -f '{{.Name}} - {{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $(docker ps -aq)
#thanks https://stackoverflow.com/questions/17157721/how-to-get-a-docker-containers-ip-address-from-the-host
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment