Skip to content

Commit 6be661f

Browse files
shanesmithmuayyad-alsadi
authored andcommitted
Support platform property
As per https://github.com/compose-spec/compose-spec/blob/master/spec.md#platform Example: ``` services: mysql: image: mysql:5.7 platform: linux/x86_64 ``` Signed-off-by: Shane Smith <shane.smith@shopify.com>
1 parent fc3598f commit 6be661f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

podman_compose.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -904,6 +904,9 @@ def container_to_args(compose, cnt, detached=True):
904904
if is_str(entrypoint):
905905
entrypoint = shlex.split(entrypoint)
906906
podman_args.extend(["--entrypoint", json.dumps(entrypoint)])
907+
platform = cnt.get("platform", None)
908+
if platform is not None:
909+
podman_args.extend(["--platform", platform])
907910

908911
# WIP: healthchecks are still work in progress
909912
healthcheck = cnt.get("healthcheck", None) or {}

0 commit comments

Comments
 (0)