Created
October 11, 2021 16:36
-
-
Save dustinbutterworth/e158e627f0cbd33cc06b194b5498aa21 to your computer and use it in GitHub Desktop.
Nuke entire docker presence on local workstation
This file contains hidden or 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
dockernuke () { | |
docker stop $(docker ps -a -q) | |
docker rm $(docker ps -a -q) | |
docker rmi $(docker images -a -q) | |
docker system prune -a | |
docker volume prune | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment