Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save GaryMatthews/de6377e5501d2b43d5826e3267fc5c14 to your computer and use it in GitHub Desktop.
Save GaryMatthews/de6377e5501d2b43d5826e3267fc5c14 to your computer and use it in GitHub Desktop.
List Docker Container Names and IPs
function drips(){
docker ps -q | xargs -n 1 docker inspect --format '{{ .NetworkSettings.IPAddress }} {{ .Name }}' | sed 's/ \// /'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment