adjust cherry-pick moby/moby@b9255e4 to work without lcow
Because the LCOW support is not part of this codebase, removing the lines that expect it to be there. Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
This commit is contained in:
@@ -397,11 +397,7 @@ func checkValidParent(img, parent *image.Image) bool {
|
||||
}
|
||||
|
||||
func checkCompatibleOS(os string) error {
|
||||
// TODO @jhowardmsft LCOW - revisit for simultaneous platforms
|
||||
platform := runtime.GOOS
|
||||
if system.LCOWSupported() {
|
||||
platform = "linux"
|
||||
}
|
||||
// always compatible if the OS matches; also match an empty OS
|
||||
if os == platform || os == "" {
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user