docker stop -t 30 mycontainer

Category: Docker

docker stop -t 30 mycontainer

Stop a container with a 30-second grace period

Sends SIGTERM and waits up to 30 seconds for a clean exit before SIGKILL. -t overrides the default grace. Long-running jobs may need more time to flush state.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.