docker container restart --timeout 10 myapp

Category: Docker

docker container restart --timeout 10 myapp

Restart a container with a stop timeout

Stops and starts myapp again, sending SIGTERM and waiting up to 10 seconds before SIGKILL. --timeout tunes the graceful-shutdown window. Restart preserves the container's filesystem and config.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.