Created
December 3, 2013 18:05
-
-
Save kevinswiber/7774301 to your computer and use it in GitHub Desktop.
Docker - print container names and IDs.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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