Created
April 6, 2019 23:36
-
-
Save sloppylopez/19f0f3526a9b7e1e78fbeceba372129d to your computer and use it in GitHub Desktop.
Clean Docker Local
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
function cleanDockerLocal | |
echo -e "Stoping Docker containers 💃" | colorStuff | |
docker kill (docker ps -q) | colorStuff | |
echo -e "Deleting Docker containers 🔥" | colorStuff | |
docker rm (docker ps -a -q) | colorStuff | |
echo -e "Deleting Docker images 💥" | colorStuff | |
docker rmi (docker images -q) | colorStuff | |
echo -e "cleanDockerLocal done! 🀄" | colorStuff | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment