github.com/kaisenlinux/docker.io@v0.0.0-20230510090727-ea55db55fac7/engine/pkg/system/lcow_unsupported.go (about) 1 //go:build !windows || (windows && no_lcow) 2 // +build !windows windows,no_lcow 3 4 package system // import "github.com/docker/docker/pkg/system" 5 import ( 6 "runtime" 7 "strings" 8 9 specs "github.com/opencontainers/image-spec/specs-go/v1" 10 ) 11 12 // InitLCOW does nothing since LCOW is a windows only feature 13 func InitLCOW(_ bool) {} 14 15 // LCOWSupported returns true if Linux containers on Windows are supported. 16 func LCOWSupported() bool { 17 return false 18 } 19 20 // ValidatePlatform determines if a platform structure is valid. This function 21 // is used for LCOW, and is a no-op on non-windows platforms. 22 func ValidatePlatform(_ specs.Platform) error { 23 return nil 24 } 25 26 // IsOSSupported determines if an operating system is supported by the host. 27 func IsOSSupported(os string) bool { 28 return strings.EqualFold(runtime.GOOS, os) 29 }