Created
March 6, 2019 20:31
-
-
Save r-pufky/4338f395250f8bde63bc969e198562a1 to your computer and use it in GitHub Desktop.
Get all docker IP's for running containers
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 ps -q | xargs -n 1 docker inspect --format '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}} {{ .Name }}' | sed 's/ \// /' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment