Skip to content

Instantly share code, notes, and snippets.

@ericcgu
Created July 7, 2018 06:01
Show Gist options
  • Save ericcgu/ef025c21cec544d0186366a90169c9db to your computer and use it in GitHub Desktop.
Save ericcgu/ef025c21cec544d0186366a90169c9db to your computer and use it in GitHub Desktop.
Clean Docker
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