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