From e0b528fe08443e7dd35fc455d4c0ee6b6e8ccbf9 Mon Sep 17 00:00:00 2001 From: John Howard Date: Thu, 18 Apr 2019 09:28:56 -0700 Subject: [PATCH] LCOW: (Experimental) Require RS5+ builds Signed-off-by: John Howard --- pkg/system/init_windows.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/system/init_windows.go b/pkg/system/init_windows.go index 7f67501285..f303aa9063 100644 --- a/pkg/system/init_windows.go +++ b/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 } }