Skip to content

Instantly share code, notes, and snippets.

@tugberkugurlu
Created October 19, 2016 19:07
Show Gist options
  • Save tugberkugurlu/d192bbc6830cb2e76aea65053fbb8b92 to your computer and use it in GitHub Desktop.
Save tugberkugurlu/d192bbc6830cb2e76aea65053fbb8b92 to your computer and use it in GitHub Desktop.
Docker CLI Cheatsheet
# List all stopped containers
docker ps --filter "status=exited"
# Remove all stopped containers
docker rm $(docker ps --filter "status=exited" -aq --no-trunc)
# Remove all unused images (http://stackoverflow.com/a/32723127)
docker rmi $(docker images --filter "dangling=true" -q --no-trunc)
@afrikaan-official
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment