From 88f8d96ed8e7edcb4dfdb3de707034036bab27ff Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Wed, 25 Nov 2020 15:40:46 -0500 Subject: Add support for --platform For docker compatibility we need to support --platform flag. podman create --platform podman run --platform podman pull --platform Since we have --override-os and --override-arch already this can be done just by modifying the client to split the --platform call into os and arch and then pass those options to the server side. Fixes: https://github.com/containers/podman/issues/6244 Signed-off-by: Daniel J Walsh --- cmd/podman/common/create_opts.go | 1 + 1 file changed, 1 insertion(+) (limited to 'cmd/podman/common/create_opts.go') diff --git a/cmd/podman/common/create_opts.go b/cmd/podman/common/create_opts.go index 6dc43dbc6..24ede4885 100644 --- a/cmd/podman/common/create_opts.go +++ b/cmd/podman/common/create_opts.go @@ -78,6 +78,7 @@ type ContainerCLIOpts struct { OverrideVariant string PID string PIDsLimit *int64 + Platform string Pod string PodIDFile string PreserveFDs uint -- cgit v1.2.3-54-g00ecf