Skip to content

Instantly share code, notes, and snippets.

@grambas
Last active Jan 21, 2019
Embed
What would you like to do?
[Docker] Docker related snippets and scripts

CLEAN DOCKER COMPLETLY

echo "alias docker-clean-unused='docker system prune --all --force --volumes'
alias docker-clean-containers='docker container stop $(docker container ls -a -q) && docker container rm $(docker container ls -a -q)'
alias docker-clean-all='docker container stop $(docker container ls -a -q) && docker system prune -a -f --volumes'" \
>> ~/.zshrc && source ~/.zshrc     ##  for zsh:

>> ~/.bashrc && source ~/.bashrc   ##  for bash:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment