Created
July 7, 2018 06:01
-
-
Save ericcgu/ef025c21cec544d0186366a90169c9db to your computer and use it in GitHub Desktop.
Clean 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
| echo "alias docker-clean-unused='docker system prune --all --force --volumes' | |
| alias docker-clean-all='docker container stop $(docker container ls -a -q) && docker system prune -a -f --volumes'" \ | |
| >> ~/.bashrc && source ~/.bashrc | |
| https://hackernoon.com/clean-out-your-docker-images-containers-and-volumes-with-single-commands-b8e38253c271 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment