Add support for runtime service configuration key

https://docs.docker.com/compose/compose-file/05-services/#runtime

Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
This commit is contained in:
Povilas Kanapickas
2024-01-03 18:07:14 +02:00
parent b1e4324d41
commit 15ae2140d4
2 changed files with 69 additions and 0 deletions

View File

@@ -983,6 +983,8 @@ async def container_to_args(compose, cnt, detached=True):
platform = cnt.get("platform", None)
if platform is not None:
podman_args.extend(["--platform", platform])
if cnt.get("runtime", None):
podman_args.extend(["--runtime", cnt["runtime"]])
# WIP: healthchecks are still work in progress
healthcheck = cnt.get("healthcheck", None) or {}