Last active
August 23, 2019 19:17
-
-
Save jhenaoz/1c207095a324e4d2f6c9145f8665cd36 to your computer and use it in GitHub Desktop.
Remove all docker containers
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 docker containers | |
docker stop $(docker ps -a -q) | |
docker rm $(docker ps -a -q) | |
#Remove all docker images | |
docker rmi $(docker images -q) | |
# Remove all docker volume | |
docker volume rm $(docker volume ls -f dangling=true -q) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment