summaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2020-02-11 09:47:45 +0100
committerValentin Rothberg <rothberg@redhat.com>2020-02-11 09:48:26 +0100
commitb0abd1c36ec5643c803b97a1c82f8d3121f902d4 (patch)
tree144ff6e7c4de34681e5395a932a0357565dd4d50 /cmd/podman
parent72dcc45f5ad7cb6f8b45305694bd6675d65989d8 (diff)
downloadpodman-b0abd1c36ec5643c803b97a1c82f8d3121f902d4.tar.gz
podman-b0abd1c36ec5643c803b97a1c82f8d3121f902d4.tar.bz2
podman-b0abd1c36ec5643c803b97a1c82f8d3121f902d4.zip
container create: relax os/arch checks
Relax the os/arch checks when creating a container and only info-log mismatches instead of erroring out. There are too many images used in the wild which do not set their arch correctly correctly. Erroring out has hit users sufficiently enough to justify relaxing the errors and only log to at least inform the users and image vendors. Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'cmd/podman')
-rw-r--r--cmd/podman/shared/create.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/podman/shared/create.go b/cmd/podman/shared/create.go
index 010c80373..3062b0ca3 100644
--- a/cmd/podman/shared/create.go
+++ b/cmd/podman/shared/create.go
@@ -109,11 +109,11 @@ func CreateContainer(ctx context.Context, c *GenericCLIResults, runtime *libpod.
}
if overrideOS == "" && imageData.Os != goruntime.GOOS {
- return nil, nil, errors.Errorf("incompatible image OS %q on %q host", imageData.Os, goruntime.GOOS)
+ logrus.Infof("Using %q (OS) image on %q host", imageData.Os, goruntime.GOOS)
}
if overrideArch == "" && imageData.Architecture != goruntime.GOARCH {
- return nil, nil, errors.Errorf("incompatible image architecture %q on %q host", imageData.Architecture, goruntime.GOARCH)
+ logrus.Infof("Using %q (architecture) on %q host", imageData.Architecture, goruntime.GOARCH)
}
names := newImage.Names()