Skip to content

Instantly share code, notes, and snippets.

@robearlam
Created November 20, 2019 15:55
Show Gist options
  • Save robearlam/94b89252066522f20cd89d198a1758ee to your computer and use it in GitHub Desktop.
Save robearlam/94b89252066522f20cd89d198a1758ee to your computer and use it in GitHub Desktop.
Get Internal IP for all running Docker containers on Windows
(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