-
Notifications
You must be signed in to change notification settings - Fork 592
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kill unhealthy #349
base: master
Are you sure you want to change the base?
Kill unhealthy #349
Conversation
I don't think this change is a good idea: it introduces unexpected side-effects into the healthcheck. |
It really does, but what is the point of having unhealthy label without automatic recovery? |
As another way of doing it I see adding this guy to a docker-compose. |
Sure. If someone who's using this image explicitly wants a management layer that kills unhealthy containers, that's their business. It'd be inappropriate to force that on them by baking such logic into this image, though. |
Yeah https://hub.docker.com/r/willfarrell/autoheal/ is the way to go. |
Finally found some time to update my PR. I believe this solution worth to be merged |
Looks good to me. |
@dperson any objections? |
To elaborate more: However that would introduce a change to the configuration to the actual image, which might confuse new users. |
How will killing the container that's hosting the network stack for other containers affect those other containers? |
After you will restart a network container, all dependent containers will loose network at all. In my setup I restart them as well to update network link to net container. So far it works flawlessly |
In that case, could it make sense to include that in the docker file as well? |
Now only containers with label |
I like that. |
@dperson or someone who is trusted with the merges would need to have a look at it now. |
@dperson is there anything I can do to merge this PR? |
any update with that? its a great idea |
Since docker-compose has
restart:unless-stopped
option I added self-killing healthcheck