Created
September 12, 2019 09:02
-
-
Save StephanWagner/18f06bc13858c6ea818f4036e12c7e8c to your computer and use it in GitHub Desktop.
Prune docker system and remove all containers, images, volumes with one command.
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
docker system prune | |
docker container stop $(docker container ls -aq) | |
docker container rm $(docker container ls -aq) | |
docker rmi $(docker images -aq) | |
docker volume prune |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment