Last active
May 7, 2020 18:44
-
-
Save oozman/11b28cedfe3d04c46a7c888de0560fbd to your computer and use it in GitHub Desktop.
Get IP of docker containers.
This file contains hidden or 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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment