Created
September 10, 2020 08:52
-
-
Save designeng/660d298d706e7750a86e4d219f20bcee to your computer and use it in GitHub Desktop.
Docker remove stopped containers & dangling images
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
# Remove all stopped containers: | |
docker rm $(docker ps -a -q) | |
# Remove all dangling Docker images: | |
docker rmi $(docker images -f "dangling=true" -q) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment