Monitoring containers with health checks
Starting with version 1.2, Podman supports the option to add a health check to containers. We will go in depth in this section into these health checks and how to use them.
A health check is a Podman feature that can help determine the health or readiness of the process running in a container. It could be as simple as checking that the container's process is running but also more sophisticated, such as verifying that both the container and its applications are responsive using, for example, network connections.
A health check is made up of five core components. The first is the main element that will instruct Podman on the particular check to execute; the others are used for configuring the schedule of the health check. Let's see these elements in detail:
- Command: This is the command that Podman will execute inside the target container. The health of the container and its process will be determined through the wait...