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
  • Select an option

  • Save RamsesMartinez/c39cd7ad93c09a86089f11e50e74ae54 to your computer and use it in GitHub Desktop.

Select an option

Save RamsesMartinez/c39cd7ad93c09a86089f11e50e74ae54 to your computer and use it in GitHub Desktop.
kill all docker containers at once...
stop all containers:
``bash
docker kill $(docker ps -q)
```
```bash
remove all containers
docker rm $(docker ps -a -q)
```
```bash
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