docker-stop
Stop one or more running Docker containers (alias)
TLDR
Stop a container (alias of `docker container stop`)
$ docker stop mycontainer
Stop multiple containers$ docker stop container1 container2
Stop with a custom timeout (seconds before SIGKILL)$ docker stop --timeout 30 mycontainer
Send a specific stop signal$ docker stop --signal SIGINT mycontainer
SYNOPSIS
docker stop [options] container [container...]
DESCRIPTION
docker stop is an alias for `docker container stop`. It stops one or more running containers by sending a termination signal (`SIGTERM` by default, or the container's `STOPSIGNAL` / `--signal`) and waiting for a graceful shutdown. If the process does not exit within the timeout (default 10 seconds on Linux unless configured otherwise), `SIGKILL` is sent.For full option details, prefer the canonical form documented under `docker container stop`.
PARAMETERS
-t, --timeout seconds
Seconds to wait before killing the container after the stop signal. Set to `-1` to wait indefinitely.-s, --signal signal
Signal to send to the container (e.g. `SIGTERM`, `SIGINT`).
INSTALL
sudo apt install docker-cli
sudo dnf install docker-cli
sudo pacman -S docker
sudo apk add docker-cli
sudo zypper install docker
brew install docker
nix profile install nixpkgs#docker
SEE ALSO
docker-container-stop(1), docker-start(1), docker-container-start(1), docker-rm(1), docker-ps(1)
