docker stop

Stop containers

medium risk

interactive breakdown — edit the command and press Explain
$ 
⚠ Risks & cautions
What it does

Gracefully stops containers; default timeout 10 s.

Common flags
FlagMeaning
-tSeconds to wait before SIGKILL
Examples
docker stop webStop a container · explain & risk-check →
docker stop -t 30 dbAllow 30 s for shutdown · explain & risk-check →
Related
docker docker rm
Open the full explainer →More in Docker & Containers

Reference text is hand-written and may be incomplete — check man docker for your version. Test destructive commands on a non-production system first.