Last active
March 13, 2016 20:42
-
-
Save tquach/a52d150cd261ff7281d6 to your computer and use it in GitHub Desktop.
Docker cheat sheet
This file contains hidden or 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
| # Start all stopped Docker containers | |
| docker ps -a -f "status=exited" -q | xargs docker start | |
| docker rm -f $(docker ps -a -f "status=exited") | |
| # Remove all dangling Docker images | |
| docker images -f "dangling=true" -q | xargs docker rmi -f | |
| # Pull all NSQ images | |
| IMAGES=("nsqio/nsqadmin" "nsqio/nsqd" "nsqio/nsqlookupd"); for N in $IMAGES; do docker pull $N; done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment