Skip to content

Instantly share code, notes, and snippets.

@aubm
Created March 28, 2016 13:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aubm/f18eb0f388cf528e73e5 to your computer and use it in GitHub Desktop.
Save aubm/f18eb0f388cf528e73e5 to your computer and use it in GitHub Desktop.
# Remove all stopped containers
docker rm $(docker ps -a -q)
# Remove all untagged images (<none>)
docker rmi $(docker images -f="dangling=true" -q)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment