Created
December 28, 2019 09:18
-
-
Save fragoulis/c21499e3a027810404e600c22b794e61 to your computer and use it in GitHub Desktop.
Clean up docker
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 stopped containers | |
docker rm $(docker ps -a -q) | |
# Remove untagged images | |
docker rmi $(docker images -a | grep "^<none>" | awk '{print $3}') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment