docker kill | Docker Documentation
https://docs.docker.com/engine/reference/commandline/killExtended description. The docker kill subcommand kills one or more containers. The main process inside the container is sent SIGKILL signal (default), or the signal that is specified with the --signal option. You can reference a container by its ID, ID-prefix, or name. The --signal (or -s shorthand) flag sets the system call signal that is sent to the container.
How to Kill All Docker Containers? - Designcise
www.designcise.com › web › tutorialJun 11, 2021 · docker kill $(docker container ls -q) This command does the following: docker container ls -q returns the list of ids of all running containers; docker kill immediately stops/kills the containers (by sending the SIGKILL signal to the main process inside the container). You can also use docker ps -q instead of docker container ls -q.