Closed
Description
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