Last active
September 10, 2021 16:00
-
-
Save eryshkov/4a7a4f11ac032ce970e4388c892b9c8b to your computer and use it in GitHub Desktop.
How to List all Docker Container Names and their IPs
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
works for me