Page MenuHomeVyOS Platform

containers - add health command
Open, LowPublic

Description

podman has the ability to make health-check from a container , it would be nice, has the possibility to add this option:

--health-cmd=”command” | ‘[“command”, “arg1”, …]’

Set or alter a healthcheck command for a container. The command is a command to be executed inside the container that determines the container health. The command is required for other health check options to be applied. A value of none disables existing health-checks.

example: https://docs.podman.io/en/latest/markdown/podman-run.1.html

sudo podman run --health-cmd '/sbin/healthcheck.sh' --health-interval 60s --health-timeout 10s --health-retries 30

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Feature (new functionality)