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
Add a solution to check childs when a restart of the parent is required and restart them when parent is "running" and/or "healthly".
Suggested solution
Maybe something like that :
add a label for child : deunhealth.restart.on.depends_on=true (maybe change "true" to the parent's container_name)
workflow of auto-restart parent :
- restart the container (parent)
- get list of other containers contains the according label (childs)
- if state is not running/healthly then restart it
Thank's for your help.
The text was updated successfully, but these errors were encountered:
PiDroid-B
changed the title
Feature request: auto-restart of containers contains depends_on when the parent container will be restart
Feature request: auto-restart containers depend on restart unhealthly parent
Jun 26, 2022
context
When we have containers (aka childs) depending on another container (parent), the childs doesn't restart when the parent is failing and restarts.
What's the feature? 🧐
Suggested solution
Maybe something like that :
Thank's for your help.
The text was updated successfully, but these errors were encountered: