docker-cli/docs/reference/commandline/container_stop.md
David Karlsson a6774de682 docs: rename cli reference aliases to canonical
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-01-15 11:29:30 +01:00

833 B

stop

Stop one or more running containers

Aliases

docker container stop, docker stop

Options

Name Type Default Description
-s, --signal string Signal to send to the container
-t, --time int 0 Seconds to wait before killing the container

Description

The main process inside the container will receive SIGTERM, and after a grace period, SIGKILL. The first signal can be changed with the STOPSIGNAL instruction in the container's Dockerfile, or the --stop-signal option to docker run.

Examples

$ docker stop my_container