Created
October 15, 2017 12:51
-
-
Save sajadbahar/7f4c81e1bfd8c1d28afd409a744b3f42 to your computer and use it in GitHub Desktop.
Free up docker space
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
| docker rm $(docker ps -qa --no-trunc --filter "status=exited") | |
| docker rmi $(docker images --filter "dangling=true" -q --no-trunc) | |
| docker rmi $(docker images | grep "none" | awk '/ / { print $3 }') |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
just add this line to end of your CD pipeline
source <(curl -s https://gist.githubusercontent.com/narsic/7f4c81e1bfd8c1d28afd409a744b3f42/raw/c1799bfc6ce047d88c7db133e6dc974a83919b01/docker-free.sh) | true