June 2, 20206 yr Hi, I've one docker container that somehow often fails to restart after e.g. stop for backup. However, if manually initiated it, it works. Always. I tried checking logs etc but couldn't find a solution. Then I remembered that User Scripts is able to use "restart" command to start a docker container and I could configure it to run every now and then. However, I don't want it to restart if the status is already running. How can I add something like "if status = active, idle, else star/restart dockercontainer. Can someone please help me to find those commands if possible or point me to script documentation? Or do I need to look at docker commands? Ofc. I tried searching the forums beforehand but couldn't find a solution or similar case yet. If I missed it, feel free to point me to it. Thanks.
Archived
This topic is now archived and is closed to further replies.