2017-04-24 13:28:21 -04:00
|
|
|
package system
|
|
|
|
|
|
|
|
import "os"
|
|
|
|
|
|
|
|
// LCOWSupported determines if Linux Containers on Windows are supported.
|
|
|
|
// Note: This feature is in development (06/17) and enabled through an
|
|
|
|
// environment variable. At a future time, it will be enabled based
|
|
|
|
// on build number. @jhowardmsft
|
|
|
|
var lcowSupported = false
|
|
|
|
|
2017-09-14 15:29:42 -04:00
|
|
|
// InitLCOW sets whether LCOW is supported or not
|
|
|
|
func InitLCOW(experimental bool) {
|
2017-04-24 13:28:21 -04:00
|
|
|
// LCOW initialization
|
2017-09-14 15:29:42 -04:00
|
|
|
if experimental && os.Getenv("LCOW_SUPPORTED") != "" {
|
2017-04-24 13:28:21 -04:00
|
|
|
lcowSupported = true
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|