Last active
November 18, 2017 03:09
-
-
Save ivawzh/10bb4dd4f4438a1271832fee6523ee50 to your computer and use it in GitHub Desktop.
remove all docker images and containers
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 docker images and containers | |
clean_docker () { | |
docker rm -f $(docker ps -aq) | |
docker rmi $(docker images | grep '^<none>' | awk '{print $3}') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment