Skip to content

Instantly share code, notes, and snippets.

@yoshikaw
Created March 9, 2015 10:24
Show Gist options
  • Save yoshikaw/81c1ef48d1d916ba91a0 to your computer and use it in GitHub Desktop.
Save yoshikaw/81c1ef48d1d916ba91a0 to your computer and use it in GitHub Desktop.
# docker ps | awk '! /CONTAINER/ { cmd="docker inspect --format \"{{ .NetworkSettings.IPAddress }}\" "$1; cmd | getline t; close(cmd); printf("%-15s %s\n", t, $0) }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment