Files
docker-cli/components/engine/pkg/system/init_windows.go
Victor Vieux a641c1b7f0 Add LCOW behind experimental,
might not be the cleanest way, but it's definitly the way with the
minimum code change.

Signed-off-by: Victor Vieux <victorvieux@gmail.com>
Upstream-commit: ff686743c50dc34b57f5627ba6fee38502bdd3ec
Component: engine
2017-09-14 13:51:16 -07:00

19 lines
496 B
Go

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
// InitLCOW sets whether LCOW is supported or not
func InitLCOW(experimental bool) {
// LCOW initialization
if experimental && os.Getenv("LCOW_SUPPORTED") != "" {
lcowSupported = true
}
}