Skip to content

Instantly share code, notes, and snippets.

@kevinswiber
Created December 3, 2013 18:05
Show Gist options
  • Save kevinswiber/7774301 to your computer and use it in GitHub Desktop.
Save kevinswiber/7774301 to your computer and use it in GitHub Desktop.
Docker - print container names and IDs.
docker ps -q | xargs docker inspect | json -a Name ID | awk '{ print substr($0, 2); }' | column -t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment