Skip to content
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

Paused containers are restarted #98

Open
ffried opened this issue Mar 22, 2023 · 3 comments
Open

Paused containers are restarted #98

ffried opened this issue Mar 22, 2023 · 3 comments

Comments

@ffried
Copy link

ffried commented Mar 22, 2023

Autoheal seems to restart paused containers.
We use docker compose pause $service to pause certain containers for e.g. backing up their volumes w/o risking concurrent access to it.
It would be great if autoheal would leave paused containers alone instead of restarting them.

@boredazfcuk
Copy link

I have noticed the same thing today. Paused containers are reported as Unhealthy by the Docker engine. I have opened a bug report with Docker for it here: moby/moby#46203

I believe a Paused container should be reported as either Healthy or Paused. Definitely not as Unhealthy. Maybe this container could check the running state and ignore any marked as Paused.

@boredazfcuk
Copy link

boredazfcuk commented Aug 12, 2023

Fork here: https://github.com/boredazfcuk/docker-autoheal

Pull request here: #109

Container here: https://hub.docker.com/repository/docker/boredazfcuk/autoheal

@tmknight
Copy link

Although using different methodology than this project, here are additional examples of how this might be handled:
filtering
failing streak

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants