1
0
Fork 0
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:
Sebastiaan van Stijn 2021-07-27 13:02:43 +02:00
parent dc70e55c9b
commit 0998c7e363
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C
2 changed files with 1 additions and 6 deletions

View file

@ -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
}

View file

@ -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)