Skip to content

Instantly share code, notes, and snippets.

@rogervila
Last active September 1, 2022 08:46
Show Gist options
  • Save rogervila/e0756c113c4a95a87509d83359043f21 to your computer and use it in GitHub Desktop.
Save rogervila/e0756c113c4a95a87509d83359043f21 to your computer and use it in GitHub Desktop.
Docker cleanup
# Stop all containers
docker stop $(docker ps -aq)
# Cleanup
docker rm $(docker ps -aq)
docker container prune --force
docker volume prune --force
docker image prune -a --force
docker network prune --force
docker system prune --volumes --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment