docker stop

Estimated reading time: 1 minute

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
chat icon Feedback? Suggestions? Can't find something in the docs?
Edit this page Request docs changes Get support