From f16f569c18218c987c0d8532a66ad0da14d3a0d0 Mon Sep 17 00:00:00 2001 From: Ivan Krutov Date: Sun, 21 Jan 2018 17:31:15 +0300 Subject: [PATCH] Using contains for matching Docker for Windows (related to #117) --- selenoid/docker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selenoid/docker.go b/selenoid/docker.go index 54e3019..0235237 100644 --- a/selenoid/docker.go +++ b/selenoid/docker.go @@ -670,7 +670,7 @@ func (c *DockerConfigurator) isDockerForWindows() bool { c.Pointf("Failed to determine whether this is Docker for Windows: %v", err) return false } - return info.OSType == "linux" && info.OperatingSystem == "Docker for Windows" + return strings.Contains(info.OSType, "linux") && strings.Contains(strings.ToLower(info.OperatingSystem), "windows") } func isVideoRecordingSupported(logger Logger, version string) bool {