Skip to content

Commit 4a88651

Browse files
committed
Add --health-on-failure
1 parent d905a7c commit 4a88651

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

podman_compose.py

+4
Original file line numberDiff line numberDiff line change
@@ -1218,6 +1218,10 @@ async def container_to_args(compose, cnt, detached=True):
12181218
if "start_period" in healthcheck:
12191219
podman_args.extend(["--healthcheck-start-period", healthcheck["start_period"]])
12201220

1221+
# check if any action must be taken on healtcheck failure
1222+
if "on_failure" in healthcheck:
1223+
podman_args.extend(["--health-on-failure", healthcheck["on_failure"]])
1224+
12211225
# convert other parameters to string
12221226
if "retries" in healthcheck:
12231227
podman_args.extend(["--healthcheck-retries", str(healthcheck["retries"])])

0 commit comments

Comments
 (0)