Merge pull request #5161 from vrothberg/revert-96ab0c64b4e3

container create: relax os/arch checks
This commit is contained in:
OpenShift Merge Robot
2020-02-11 16:03:44 +01:00
committed by GitHub

View File

@ -109,11 +109,11 @@ func CreateContainer(ctx context.Context, c *GenericCLIResults, runtime *libpod.
} }
if overrideOS == "" && imageData.Os != goruntime.GOOS { 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 { 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() names := newImage.Names()