Skip to content

docker stop

Description

Stops one or more running containers gracefully, giving each process a moment to shut down before it is forced.

Syntax

docker stop [OPTIONS] CONTAINER [CONTAINER...]

Common Options

Option Description
-t SECONDS How long to wait before forcing the stop (default 10)

Examples

docker stop web
docker stop web db worker

Start a stopped container again with docker start.