Skip to content

Instantly share code, notes, and snippets.

@DzeryCZ
Last active December 17, 2018 14:17
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 DzeryCZ/f73601d76d845c3d54ebde0ce202600e to your computer and use it in GitHub Desktop.
Save DzeryCZ/f73601d76d845c3d54ebde0ce202600e to your computer and use it in GitHub Desktop.
Clean Docker Containers and Images
# Stop all containers
docker stop $(docker ps -a -q)
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)
# Delete all volumes
docker volume rm $(docker volume -q)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment