diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2020-04-28 11:05:32 +0200 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2020-04-30 11:33:32 +0200 |
commit | 27f514544597f68b2f5229a2b2299e2df446afd5 (patch) | |
tree | d8205caed250d9ae9541e269a6f526b119be63fd | |
parent | 99f8cfc2dc39b11cd315062167f1ffaf85eda946 (diff) | |
download | podman-27f514544597f68b2f5229a2b2299e2df446afd5.tar.gz podman-27f514544597f68b2f5229a2b2299e2df446afd5.tar.bz2 podman-27f514544597f68b2f5229a2b2299e2df446afd5.zip |
create: propagate override-arch and override-os
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
-rw-r--r-- | cmd/podman/containers/create.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd/podman/containers/create.go b/cmd/podman/containers/create.go index da550b606..7eed84f29 100644 --- a/cmd/podman/containers/create.go +++ b/cmd/podman/containers/create.go @@ -180,8 +180,10 @@ func pullImage(imageName string) error { return errors.New("unable to find a name and tag match for busybox in repotags: no such image") } _, pullErr := registry.ImageEngine().Pull(registry.GetContext(), imageName, entities.ImagePullOptions{ - Authfile: cliVals.Authfile, - Quiet: cliVals.Quiet, + Authfile: cliVals.Authfile, + Quiet: cliVals.Quiet, + OverrideArch: cliVals.OverrideArch, + OverrideOS: cliVals.OverrideOS, }) if pullErr != nil { return pullErr |