Skip to content

Instantly share code, notes, and snippets.

@dublado
Last active March 2, 2018 13:49
Show Gist options
  • Save dublado/63b666c2b74e1bee4bcf81fbfcbbf3b6 to your computer and use it in GitHub Desktop.
Save dublado/63b666c2b74e1bee4bcf81fbfcbbf3b6 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