moby--moby/pkg/system/lcow.go

17 lines
348 B
Go
Raw Normal View History

package system // import "github.com/docker/docker/pkg/system"
import (
"runtime"
)
// IsOSSupported determines if an operating system is supported by the host
func IsOSSupported(os string) bool {
if strings.EqualFold(runtime.GOOS, os) {
return true
}
if LCOWSupported() && strings.EqualFold(os, "linux") {
return true
}
return false
}