Skip to content

Instantly share code, notes, and snippets.

@tquach
Last active March 13, 2016 20:42
Show Gist options
  • Select an option

  • Save tquach/a52d150cd261ff7281d6 to your computer and use it in GitHub Desktop.

Select an option

Save tquach/a52d150cd261ff7281d6 to your computer and use it in GitHub Desktop.
Docker cheat sheet
# 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