Last active
October 15, 2019 14:33
-
-
Save unclebean/dc721c0c24c0479016a3c87614018ae8 to your computer and use it in GitHub Desktop.
remove unused docker 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
// remove none image | |
docker rmi -f $(docker images | grep "<none>" | awk "{print \$3}") | |
// remove image with dependent child images | |
docker rmi $(docker images --filter "dangling=true" -q --no-trunc) | |
// show stopped container | |
docker ps --filter "status=exited" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment