Last active
September 30, 2022 09:46
-
-
Save fclesio/436aedee06b91aa8ac863b671919372e to your computer and use it in GitHub Desktop.
Stop all running containers, delete containers and images
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
## Ref: https://stackoverflow.com/questions/44785585/how-to-delete-all-docker-local-docker-images | |
docker container prune -f && | |
docker stop $(docker ps -aq) && | |
docker rm -vf $(docker ps -a -q) && | |
docker rmi -f $(docker images -a -q) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment