docs/data/engine-cli/docker_container_stop.yaml

56 lines
1.5 KiB
YAML

command: docker container stop
aliases: docker container stop, docker stop
short: Stop one or more running containers
long: |-
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`.
usage: docker container stop [OPTIONS] CONTAINER [CONTAINER...]
pname: docker container
plink: docker_container.yaml
options:
- option: signal
shorthand: s
value_type: string
description: Signal to send to the container
deprecated: false
hidden: false
experimental: false
experimentalcli: false
kubernetes: false
swarm: false
- option: time
shorthand: t
value_type: int
default_value: "0"
description: Seconds to wait before killing the container
deprecated: false
hidden: false
experimental: false
experimentalcli: false
kubernetes: false
swarm: false
inherited_options:
- option: help
value_type: bool
default_value: "false"
description: Print usage
deprecated: false
hidden: true
experimental: false
experimentalcli: false
kubernetes: false
swarm: false
examples: |-
```console
$ docker stop my_container
```
deprecated: false
hidden: false
experimental: false
experimentalcli: false
kubernetes: false
swarm: false