Last active
January 4, 2021 22:19
-
-
Save edgars/719b224764ab1adde4840bca0f508a44 to your computer and use it in GitHub Desktop.
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 | |
clear | |
echo stopping docker | |
docker stop $(docker ps -aq) | |
echo removing all contianers | |
docker rm $(docker ps -aq) | |
echo removing all containers | |
docker rmi $(docker images -q) -f | |
echo pruning docker system | |
docker system prune | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment