Last active
February 15, 2021 08:59
-
-
Save 0hlov3/2135fde10fcbbe535cbaf629c8f04414 to your computer and use it in GitHub Desktop.
DOCKER PRUNE EVERYTHING
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
#!/bin/bash | |
echo 'Stop Containers' | |
docker stop $(docker ps -a -q) | |
echo 'Remove Containers' | |
docker rm -f $(docker ps -a -q) | |
echo 'Remove Images' | |
docker rmi -f $(docker images -a -q) | |
echo 'Prune Volumes' | |
docker volume prune |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment