diff --git a/builder/dockerfile/dispatchers_test.go b/builder/dockerfile/dispatchers_test.go index 3799b91c32..75ae30b52d 100644 --- a/builder/dockerfile/dispatchers_test.go +++ b/builder/dockerfile/dispatchers_test.go @@ -116,7 +116,7 @@ func TestFromScratch(t *testing.T) { } err := initializeStage(sb, cmd) - if runtime.GOOS == "windows" && !system.LCOWSupported() { + if runtime.GOOS == "windows" { assert.Check(t, is.Error(err, "Linux containers are not supported on this system")) return } diff --git a/pkg/system/lcow_unsupported.go b/pkg/system/image_os.go similarity index 67% rename from pkg/system/lcow_unsupported.go rename to pkg/system/image_os.go index 09150f1282..e3de86be29 100644 --- a/pkg/system/lcow_unsupported.go +++ b/pkg/system/image_os.go @@ -4,11 +4,6 @@ import ( "strings" ) -// LCOWSupported returns true if Linux containers on Windows are supported. -func LCOWSupported() bool { - return false -} - // IsOSSupported determines if an operating system is supported by the host. func IsOSSupported(os string) bool { return strings.EqualFold(runtime.GOOS, os)