Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
Using contains for matching Docker for Windows (related to #117)
Browse files Browse the repository at this point in the history
  • Loading branch information
vania-pooh committed Jan 21, 2018
1 parent 9f35442 commit f16f569
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selenoid/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f16f569

Please sign in to comment.