Skip to content

Instantly share code, notes, and snippets.

@mephir
Created June 4, 2017 07:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mephir/ccb60d4db62b25dad65539d606e1c66c to your computer and use it in GitHub Desktop.
Save mephir/ccb60d4db62b25dad65539d606e1c66c to your computer and use it in GitHub Desktop.
Docker bash aliases to ckeep it tidy
alias docker_clean_images='docker rmi $(docker images -a --filter=dangling=true -q)'
alias docker_clean_ps='docker rm $(docker ps --filter=status=exited --filter=status=created -q)'
alias docker_clean_volumes='docker volume rm $(docker volume ls -qf dangling=true)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment