Created
October 1, 2022 18:57
-
-
Save eryshkov/4023a2ff7d38693b30138a46fa91ac2e to your computer and use it in GitHub Desktop.
Get all docker 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
Use this after docker-compose up to get containers IPs