mirror of
https://github.com/containers/podman.git
synced 2025-06-27 13:38:49 +08:00
Merge pull request #5161 from vrothberg/revert-96ab0c64b4e3
container create: relax os/arch checks
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user