Last active
September 1, 2022 08:46
-
-
Save rogervila/e0756c113c4a95a87509d83359043f21 to your computer and use it in GitHub Desktop.
Docker cleanup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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