summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2020-04-28 11:05:32 +0200
committerGiuseppe Scrivano <gscrivan@redhat.com>2020-04-30 11:33:32 +0200
commit27f514544597f68b2f5229a2b2299e2df446afd5 (patch)
treed8205caed250d9ae9541e269a6f526b119be63fd /cmd
parent99f8cfc2dc39b11cd315062167f1ffaf85eda946 (diff)
downloadpodman-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>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/podman/containers/create.go6
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