Created
March 16, 2023 13:42
-
-
Save NewEXE/040225299226dc4431add5a302277cf0 to your computer and use it in GitHub Desktop.
Remove all docker entities (containers, images, volumes, networks)
This file contains hidden or 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
# Remove containers | |
docker rm -f $(docker ps -a -q) | |
# Remove images | |
docker rmi -f $(docker images -a -q) | |
# Remove volumes | |
docker volume rm $(docker volume ls -q) | |
docker volume prune | |
docker system prune --volumes | |
# Remove all other | |
docker system prune -a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment