github.com/docker/engine@v22.0.0-20211208180946-d456264580cf+incompatible/pkg/system/image_os.go (about) 1 package system // import "github.com/docker/docker/pkg/system" 2 import ( 3 "runtime" 4 "strings" 5 ) 6 7 // IsOSSupported determines if an operating system is supported by the host. 8 func IsOSSupported(os string) bool { 9 return strings.EqualFold(runtime.GOOS, os) 10 }