Skip to content

Instantly share code, notes, and snippets.

@fojuth
Created October 6, 2016 14:59
Show Gist options
  • Select an option

  • Save fojuth/881fe38f375c4ecbd7a8a145511f0aae to your computer and use it in GitHub Desktop.

Select an option

Save fojuth/881fe38f375c4ecbd7a8a145511f0aae to your computer and use it in GitHub Desktop.
# List docker containers and their IPs
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