Skip to content

Instantly share code, notes, and snippets.

@matthewpoer
Last active December 18, 2019 15:12
Show Gist options
  • Save matthewpoer/c5595b3e5323859a0a58cb608d1a0384 to your computer and use it in GitHub Desktop.
Save matthewpoer/c5595b3e5323859a0a58cb608d1a0384 to your computer and use it in GitHub Desktop.
Docker kill all, Bash alias to stop and remove all Docker containers and images
alias docker_kill_all='docker stop $(docker ps -a -q) && docker rm $(docker ps -a -q) && docker image rm $(docker image ls -q)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment