ofelia
ofelia copied to clipboard
Exec job in stopped container
I have a container with several mounted volumes, and I wish ofelia to run a command on it. The only problem is, that this container is not running by default.
Would it be complicated to add an option to start the container in case it isn't running?
I think that the best thing to do is to have keepalive
check or health
check. If it ouputs that the container isn't running, then you start it. It's pretty much one if-else
statement.
I have a similar feature request. We're using a container that has to be startet, executes a scripts and stops then hourly. We don't even need to execute a command, but of course we could do some fake stuff... so I can +1 on the request here.
If my case is typical, you could even add a job type (and documentation) for starting a stopped container regularly.
Thank you very much for this great tool!!
Is there any solution to this problem yet? How can we start a stoppend container in ofelia?
Just FYI: The issue still exists 5Y later :(