瀏覽代碼

LCOW: (Experimental) Require RS5+ builds

Signed-off-by: John Howard <jhoward@microsoft.com>
John Howard 6 年之前
父節點
當前提交
e0b528fe08
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      pkg/system/init_windows.go

+ 3 - 2
pkg/system/init_windows.go

@@ -3,6 +3,7 @@ package system // import "github.com/docker/docker/pkg/system"
 import (
 	"os"
 
+	"github.com/Microsoft/hcsshim/osversion"
 	"github.com/sirupsen/logrus"
 )
 
@@ -15,10 +16,10 @@ var (
 	containerdRuntimeSupported = false
 )
 
-// InitLCOW sets whether LCOW is supported or not
+// InitLCOW sets whether LCOW is supported or not. Requires RS5+
 func InitLCOW(experimental bool) {
 	v := GetOSVersion()
-	if experimental && v.Build >= 16299 {
+	if experimental && v.Build >= osversion.RS5 {
 		lcowSupported = true
 	}
 }