Skip to content

Instantly share code, notes, and snippets.

@oozman
Last active May 7, 2020 18:44
Show Gist options
  • Save oozman/11b28cedfe3d04c46a7c888de0560fbd to your computer and use it in GitHub Desktop.
Save oozman/11b28cedfe3d04c46a7c888de0560fbd to your computer and use it in GitHub Desktop.
Get IP of docker containers.
docker inspect -f '{{.Name}} - {{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $(docker ps -aq)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment