Would it be possible to support the StopTimeout field on Docker container creation?
re: ZD-5428
Thanks.
To add color to this ticket -
Use case:
Operators may need to bounce docker engine, and engine will observe a stop-timeout if set on "docker run". This helps to ensure there is consistent stopping behavior when either nomad does a container stop and also docker-engine doing the stop. This helps protect applications that need a little more time to shutdown gracefully. Otherwise, the default that docker provides is just 10 seconds. When set, docker engine will wait the for the container that has the longest timeout.
Thank you!
@samart Would you want this to be settable on its own or just be the same value as the kill_timeout. Have the two out of sync seems problematic.
Hi Alex - it does make sense for it to be the same value and probably set automatically. But who knows if you will encounter the oddball use use where someone might see this as a problem.
But i am pro setting it automatically and that's a good feature IMHO.
Will need https://github.com/fsouza/go-dockerclient/pull/693 to merge first
@chelseakomlo As part of which release this feature would be available ?
It will be available shortly in 0.7.1
Most helpful comment
It will be available shortly in 0.7.1