docker stop
Estimated reading time: 1 minuteEdge only: This is the CLI reference for Docker CE Edge versions. Some of these options may not be available to Docker CE stable or Docker EE. You can view the stable version of this CLI reference or learn about Docker CE Edge.
Description
Stop one or more running containers
Usage
docker stop [OPTIONS] CONTAINER [CONTAINER...]
Options
Name, shorthand | Default | Description |
--time , -t |
10 |
Seconds to wait for stop before killing it |
Parent command
Command | Description |
---|---|
docker | The base command for the Docker CLI. |
Extended description
The main process inside the container will receive SIGTERM
, and after a grace
period, SIGKILL
.
Examples
$ docker stop my_container