Browse code

LCOW: (Experimental) Require RS5+ builds

Signed-off-by: John Howard <jhoward@microsoft.com>

John Howard authored on 2019/04/19 01:28:56
Showing 1 changed files
... ...
@@ -3,6 +3,7 @@ package system // import "github.com/docker/docker/pkg/system"
3 3
 import (
4 4
 	"os"
5 5
 
6
+	"github.com/Microsoft/hcsshim/osversion"
6 7
 	"github.com/sirupsen/logrus"
7 8
 )
8 9
 
... ...
@@ -15,10 +16,10 @@ var (
15 15
 	containerdRuntimeSupported = false
16 16
 )
17 17
 
18
-// InitLCOW sets whether LCOW is supported or not
18
+// InitLCOW sets whether LCOW is supported or not. Requires RS5+
19 19
 func InitLCOW(experimental bool) {
20 20
 	v := GetOSVersion()
21
-	if experimental && v.Build >= 16299 {
21
+	if experimental && v.Build >= osversion.RS5 {
22 22
 		lcowSupported = true
23 23
 	}
24 24
 }