github.com/ssdev-go/moby@v17.12.1-ce-rc2+incompatible/pkg/system/init_windows.go (about)

     1  package system
     2  
     3  import "os"
     4  
     5  // lcowSupported determines if Linux Containers on Windows are supported.
     6  var lcowSupported = false
     7  
     8  // InitLCOW sets whether LCOW is supported or not
     9  // TODO @jhowardmsft.
    10  // 1. Replace with RS3 RTM build number.
    11  // 2. Remove the getenv check when image-store is coalesced as shouldn't be needed anymore.
    12  func InitLCOW(experimental bool) {
    13  	v := GetOSVersion()
    14  	if experimental && v.Build > 16270 && os.Getenv("LCOW_SUPPORTED") != "" {
    15  		lcowSupported = true
    16  	}
    17  }