mirror of https://github.com/docker/docs.git
30 lines
653 B
YAML
30 lines
653 B
YAML
command: 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`.
|
|
usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
pname: docker
|
|
plink: docker.yaml
|
|
options:
|
|
- option: time
|
|
shorthand: t
|
|
value_type: int
|
|
default_value: "10"
|
|
description: Seconds to wait for stop before killing it
|
|
deprecated: false
|
|
experimental: false
|
|
experimentalcli: false
|
|
kubernetes: false
|
|
swarm: false
|
|
examples: |-
|
|
```bash
|
|
$ docker stop my_container
|
|
```
|
|
deprecated: false
|
|
experimental: false
|
|
experimentalcli: false
|
|
kubernetes: false
|
|
swarm: false
|
|
|