Last active
March 2, 2018 13:49
-
-
Save dublado/63b666c2b74e1bee4bcf81fbfcbbf3b6 to your computer and use it in GitHub Desktop.
get all containers ip
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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