title: Docker Daemon stop - Timeout for container defaults 10s
body: <p><code>docker stop</code> has a standard timeout of 10s (<a href="https://docs.docker.com/compose/reference/stop/" rel="noreferrer">Reference - Docker Stop</a>). This time window may be to short for the shutdown of mysql or influxdb to reach a consistent state on file system. If I stopped the container by hand, I would shut it down with <code>docker stop -t 60 mysql</code>. But that is not the default case. The containers are on auto restart and started and stopped with the docker daemon.</p>
  
  <p>If I stop the docker daemon (e.g. on system reboot), the daemon will stop all running container with a timeout of 10 seconds, which can cause inconsistent dbs.</p>
  
  <p><strong>Question:</strong> Is there a way to set the global timeout for <code>docker stop</code> or the daemon stop?</p>
  
  <p>Update 2016-05-03: Added <a href="https://github.com/docker/docker/issues/22471" rel="noreferrer">[Feature Request] Add config parameter to change stop timeout for containers or globally #22471</a> on github.</p>