Podman Health Action on Failure

Rarely, some of my containers would fail and become unhealthy, for example, Redis, on my Paperless quadlet-based pod. A simple restart works, but it requires logging into the machine.

Podman has a solution to restart the container if it detects that it’s unhealthy. Or if using quadlets, it can be killed and then automatically restarted by systemd. The option is HealthOnFailure. That’s a pretty neat feature, that I’d like to introduce to most of my containers.