Created
November 20, 2019 15:55
-
-
Save robearlam/94b89252066522f20cd89d198a1758ee to your computer and use it in GitHub Desktop.
Get Internal IP for all running Docker containers on Windows
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 | ForEach-Object { docker inspect $_ --format '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}} {{ .Name }}' }).replace('/','') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment