docker-autoheal icon indicating copy to clipboard operation
docker-autoheal copied to clipboard

autoheal stop restarting unhealthy container after some time

Open DBarthe opened this issue 5 years ago • 0 comments

Hello, thanks for this tool,

I might be facing a bug, however.

Basically I have a container that has to be restarted every two hours, more or less (I won't explain why). The need for restart is detected through a docker health check.

Docker-autoheal does the job successfully until a few days of uptime, then I have to restart both containers.

This is what is found in the logs :

18-03-2020 16:33:14 Restarting container 3fc39d98c331 failed
18-03-2020 18:35:21 Container /******** (3fc39d98c331) found to be unhealthy - Restarting container now with 10s timeout
18-03-2020 20:36:50 Container //******** (3fc39d98c331) found to be unhealthy - Restarting container now with 10s timeout
18-03-2020 22:38:20 Container /******** (3fc39d98c331) found to be unhealthy - Restarting container now with 10s timeout
sh: you need to specify whom to kill
Monitoring containers for unhealthy status in 0 second(s)
sh: you need to specify whom to kill
Monitoring containers for unhealthy status in 0 second(s)

Personally I got other options for my use-case, but I thought you might like to know that docker-autoheal is maybe unstable when having to restart containers on an hourly basis.

Best regards,

DBarthe avatar Mar 24 '20 15:03 DBarthe