Created
August 10, 2023 07:59
-
-
Save aya986/53addbf387495e1f49cffb78d5be9e66 to your computer and use it in GitHub Desktop.
Get IPAddress and docker name for all 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 ps -q | xargs -n 1 docker inspect --format '{{ .Name }} {{range .NetworkSettings.Networks}} {{.IPAddress}}{{end}}' | sed 's#^/##'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment