# How to stop all Docker Containers

Source: https://www.hukot.net/community/en/tutorials/how-to-stop-all-docker-containers
Updated: 2026-11-25

To **stop all Docker** containers simply run the following command in your terminal:

`docker kill $(docker ps -q)`

### How It Works

1. The docker **ps** command will list all running containers.
2. The **-q** flag will only list the IDs for those containers.
3. Once we have the list of all container IDs, we can simply run the docker **kill** command, passing all those IDs, and they’ll all be stopped!

`docker kill` sends SIGKILL, so the containers have no time to shut down cleanly. For a graceful shutdown use `docker stop $(docker ps -q)`.
