Last active
May 9, 2017 22:04
-
-
Save razumzhir0/e6e5c5601aa8b9982f7f358f996a3851 to your computer and use it in GitHub Desktop.
Docker Burn Script - Taken/modified from StackExchange, unsure of the post.
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
# echo 'stopping all containers...\n ' | |
docker kill $(docker ps -q) | |
# echo 'removing all containers...\n ' | |
docker rm $(docker ps -a -q) | |
# echo 'removing all docker images...\n ' | |
docker rmi $(docker images -a -q) | |
# echo 'removing all docker volumes...\n ' | |
docker volume rm $(docker volume ls -qf dangling=true) | |
# verify | |
docker ps -a | |
docker images ls | |
docker volume ls |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment