This commit is contained in:
Strahil Nikolov 2025-03-19 16:33:45 +01:00 committed by GitHub
commit 87e9a64877
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1235,6 +1235,10 @@ async def container_to_args(compose, cnt, detached=True, no_deps=False):
if "start_period" in healthcheck:
podman_args.extend(["--healthcheck-start-period", healthcheck["start_period"]])
# check if any action must be taken on healtcheck failure
if "on_failure" in healthcheck:
podman_args.extend(["--health-on-failure", healthcheck["on_failure"]])
# convert other parameters to string
if "retries" in healthcheck:
podman_args.extend(["--healthcheck-retries", str(healthcheck["retries"])])