Jump to content

control docker container restart behavior


Benni-chan

Recommended Posts

not sure, if this should be posted here or in the docker subforum, but since it is a feature request..

 

It would be great, if we could control the restart behavior of docker containers from the web interface. (a simple drop down menu with the items "never" (default), "on-failure" (this would need an additional text box to select max-retries, or several items in the drop down with some fixed values), "always")

 

the commandline help states this for the cmd parameter:

--restart=""               Restart policy to apply when a container exits (no, on-failure[:max-retry], always)

 

background:

I've created a sonarr docker container, but the integrated update process would require the docker container to restart itself after the app closes.

Link to comment

You should be able to add any custom parameters to the command line that aren't supported natively with that method.

 

Perhaps LimeTech could add another line to the template labelled something like Custom Command Line Options to make this less confusing in the future.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...