September 7, 20187 yr 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, 20187 yr by NeverBeenDrunk
July 30, 20196 yr @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
July 30, 20196 yr CA Userscript plugin + write a bash script with docker stop, sleep and docker start. You can control the sleep time to any arbitrary length.
July 30, 20196 yr 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.
July 30, 20196 yr 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
July 31, 20196 yr 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.
May 20, 20206 yr 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
June 9, 20206 yr 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.
June 9, 20206 yr 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 ?!??!
June 9, 20206 yr 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).
July 5, 20205 yr 7 hours ago, MrChunky said: Was the feature request submitted for this finally? Sorry, I forgot all about this. I've made one now:
July 6, 20205 yr 16 hours ago, Alexstrasza said: Sorry, I forgot all about this. I've made one now: Thank you 😘
Archived
This topic is now archived and is closed to further replies.