You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if your target running container has a shell with pkill (or ps and kill) installed, and you know the name of the core process that is used to determine when the container will restart if restart: unless-stopped is set in the compose yaml, you could schedule a command to run to kill the process gracefully which would trigger the container to restart.
If your target container is using the s6 overlay, it will be harder to restart the container itself, but you could restart the service within the container.
Finally, if you know how to set container names (or have enough shell mastery to get container ids from docker ps), and if you are okay with running docker-in-docker you could implement a job-run config like:
Ofelia currently doesn't support this, however functionality to send a signal to the container on schedule might be a good idea. Something like job-signal
Hello Everyone :)
Is it possible to use ofelia to restart a running container on a schedule? Alternatively I need to find a way to kill it through
job-exec
.Any pointer would be appreciated!
Thanks!
The text was updated successfully, but these errors were encountered: