8000 [Feature Request] Add config parameter to change stop timeout for containers or globally · Issue #22471 · moby/moby · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[Feature Request] Add config parameter to change stop timeout for containers or globally #22471
Closed
@coding-jj

Description

@coding-jj

The default timeout for docker stop <container> is 10 seconds.

This time sometimes not enough to reach consistency on the file space for databases like MySQL or InfluxDB. This is not a problem for manual start and stop, so you can define the timeout with e.g. `docker stop -t 60

Problem: If you stop the docker daemon or reboot the machine the timeout will be 10 seconds by default and that might screw up databases, because the time is to short to reach database file space consistency.

Suggestion 1: Implement a parameter for the docker daemon to change the global default timeout.
Suggestion 2: Implement a parameter for the docker containers to change the container default timeout.

I'm using Docker version 1.11.0, build 4dc5990

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/enhancementEnhancements are not bugs or new features but can improve usability or performance.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0