NeverBeenDrunk Posted September 7, 2018 Share Posted September 7, 2018 (edited) I need to set the --time parameter to something greater than 10 seconds as some of my apps need to gracefully shutdown and they can take up to 30 seconds processing files. Is there anyway to change the --time parameter on docker stop/restart? Reference: https://docs.docker.com/engine/reference/commandline/stop/ Edited September 7, 2018 by NeverBeenDrunk Quote Link to comment
L0rdRaiden Posted July 30, 2019 Share Posted July 30, 2019 @limetech I would need to do the same, the database of the Storj Docker keeps get corrupting becuase the timeout is too short. I could shut it down manually but it would be great to be able to customize the timeout for this docker in particular, or for all of them, whatever is easier. Is there a way to do this without you requiring you to modify unraid? Stopping the container from the interface with a bigger timeout Thanks Quote Link to comment
testdasi Posted July 30, 2019 Share Posted July 30, 2019 CA Userscript plugin + write a bash script with docker stop, sleep and docker start. You can control the sleep time to any arbitrary length. Quote Link to comment
L0rdRaiden Posted July 30, 2019 Share Posted July 30, 2019 40 minutes ago, testdasi said: CA Userscript plugin + write a bash script with docker stop, sleep and docker start. You can control the sleep time to any arbitrary length. But that is basically the same than stopping the container from command line. I only want to do this with 1 container. Not all. Quote Link to comment
testdasi Posted July 30, 2019 Share Posted July 30, 2019 27 minutes ago, L0rdRaiden said: But that is basically the same than stopping the container from command line. I only want to do this with 1 container. Not all. Docker stop can be used to stop a specific docker docker stop docker_name Quote Link to comment
L0rdRaiden Posted July 31, 2019 Share Posted July 31, 2019 20 hours ago, testdasi said: Docker stop can be used to stop a specific docker docker stop docker_name I know I can do this docker stop -t 300 DOCKERNAME but what I want is to implement this somewhere so is the default behaviour when I click on the docker and then click stop is this. Quote Link to comment
Pascal51882 Posted May 20, 2020 Share Posted May 20, 2020 On 7/31/2019 at 9:32 AM, L0rdRaiden said: I know I can do this docker stop -t 300 DOCKERNAME but what I want is to implement this somewhere so is the default behaviour when I click on the docker and then click stop is this. I am at the same point. Would be really coll and usefull. An extra parameter in each or general in docker would be really helpfull for a lot of sensitive dockers Quote Link to comment
Alexstrasza Posted June 9, 2020 Share Posted June 9, 2020 Exact same problem with the exact same use-case as @L0rdRaiden. Did anyone find a solution to this? Otherwise I might propose this a a feature request. Quote Link to comment
Squid Posted June 9, 2020 Share Posted June 9, 2020 You should post this as a feature request. As I recall, a few years ago I did submit a PR to the webGUI to do this, but it was declined because the issue didn't affect the user's system ?!??! Quote Link to comment
Alexstrasza Posted June 9, 2020 Share Posted June 9, 2020 1 hour ago, Squid said: You should post this as a feature request. As I recall, a few years ago I did submit a PR to the webGUI to do this, but it was declined because the issue didn't affect the user's system ?!??! Please can you link me to that pull request? If possible, it would probably make more sense to request they review it again (considering you've already done the work). Quote Link to comment
Squid Posted June 9, 2020 Share Posted June 9, 2020 Can't find it or the conversation. Maybe it was via a PM here years ago. IDK Quote Link to comment
MrChunky Posted July 5, 2020 Share Posted July 5, 2020 Was the feature request submitted for this finally? Quote Link to comment
Alexstrasza Posted July 5, 2020 Share Posted July 5, 2020 7 hours ago, MrChunky said: Was the feature request submitted for this finally? Sorry, I forgot all about this. I've made one now: Quote Link to comment
MrChunky Posted July 6, 2020 Share Posted July 6, 2020 16 hours ago, Alexstrasza said: Sorry, I forgot all about this. I've made one now: Thank you 😘 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.