mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
system: remove LCOWSupported() utility
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
dc70e55c9b
commit
0998c7e363
2 changed files with 1 additions and 6 deletions
|
@ -116,7 +116,7 @@ func TestFromScratch(t *testing.T) {
|
|||
}
|
||||
err := initializeStage(sb, cmd)
|
||||
|
||||
if runtime.GOOS == "windows" && !system.LCOWSupported() {
|
||||
if runtime.GOOS == "windows" {
|
||||
assert.Check(t, is.Error(err, "Linux containers are not supported on this system"))
|
||||
return
|
||||
}
|
||||
|
|
|
@ -4,11 +4,6 @@ import (
|
|||
"strings"
|
||||
)
|
||||
|
||||
// LCOWSupported returns true if Linux containers on Windows are supported.
|
||||
func LCOWSupported() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsOSSupported determines if an operating system is supported by the host.
|
||||
func IsOSSupported(os string) bool {
|
||||
return strings.EqualFold(runtime.GOOS, os)
|
Loading…
Reference in a new issue