github.com/docker/docker@v299999999.0.0-20200612211812-aaf470eca7b5+incompatible/pkg/system/lcow_unsupported.go (about)

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