Replies: 4 comments 5 replies
-
@baude Thoughts? |
Beta Was this translation helpful? Give feedback.
-
well i asked him to start a discussion on this ... so I dont really have thoughts. |
Beta Was this translation helpful? Give feedback.
-
https://developers.redhat.com/blog/2019/04/18/monitoring-container-vitality-and-availability-with-podman/ . adding the falg --healthcheck-command or building HEALTHCHECK into the Dockerfile on build should work. Have you tried either? |
Beta Was this translation helpful? Give feedback.
-
I'm not opposed to adding the ability to take an action on HC failure. We do similar things for restart policy already, so it should be possible. What actions would we support? Stop container, restart container? Running a user-specified binary would be nice but getting the UI for that right (how do we pass it in by CLI?) could be complicated. |
Beta Was this translation helpful? Give feedback.
-
Hi Folks - I've been playing around with healthchecks in podman and do not see a way to take an action when a healthcheck fails or meets a certain criteria outside of using something like a script running logic on
podman healthcheck run <container>
in cron. The action I would like to see is simply restarting the container on a failed healthcheck (maybe if it exhausts the number of retries).Thoughts on this being a worthy feature request? Thanks :)
Beta Was this translation helpful? Give feedback.
All reactions