Skip to content

Instantly share code, notes, and snippets.

@r-pufky
Created March 6, 2019 20:31
Show Gist options
  • Save r-pufky/4338f395250f8bde63bc969e198562a1 to your computer and use it in GitHub Desktop.
Save r-pufky/4338f395250f8bde63bc969e198562a1 to your computer and use it in GitHub Desktop.
Get all docker IP's for running containers
docker ps -q | xargs -n 1 docker inspect --format '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}} {{ .Name }}' | sed 's/ \// /'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment