ofelia icon indicating copy to clipboard operation
ofelia copied to clipboard

Exec job in stopped container

Open boukeversteegh opened this issue 7 years ago • 4 comments

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?

boukeversteegh avatar Jan 22 '18 20:01 boukeversteegh

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.

AlekKras avatar Apr 23 '18 20:04 AlekKras

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!!

JPustkuchen avatar Jul 27 '18 19:07 JPustkuchen

Is there any solution to this problem yet? How can we start a stoppend container in ofelia?

JPustkuchen avatar Dec 03 '18 17:12 JPustkuchen

Just FYI: The issue still exists 5Y later :(

JPustkuchen avatar Jul 04 '23 15:07 JPustkuchen