Skip to content

Instantly share code, notes, and snippets.

@RamsesMartinez
Forked from evanscottgray/docker_kill.sh
Last active June 15, 2020 09:12
Show Gist options
  • Save RamsesMartinez/c39cd7ad93c09a86089f11e50e74ae54 to your computer and use it in GitHub Desktop.
Save RamsesMartinez/c39cd7ad93c09a86089f11e50e74ae54 to your computer and use it in GitHub Desktop.
kill all docker containers at once...

stop all containers:

docker kill $(docker ps -q)

remove all containers

docker rm $(docker ps -a -q)

remove all docker images

docker rmi $(docker images -q)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment