Skip to content

Commit

Permalink
fix: detect Rancher Desktop, fixes ddev#6259
Browse files Browse the repository at this point in the history
  • Loading branch information
stasadev committed May 31, 2024
1 parent eb737c2 commit be8da1c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,14 @@ func GetDockerPlatform() (string, error) {
switch {
case strings.HasPrefix(platform, "Docker Desktop"):
platform = "docker-desktop"
case strings.HasPrefix(platform, "Rancher Desktop") || strings.Contains(info.Name, "rancher-desktop"):
platform = "rancher-desktop"
case strings.HasPrefix(info.Name, "colima"):
platform = "colima"
case strings.HasPrefix(info.Name, "lima"):
platform = "lima"
case platform == "OrbStack":
platform = "orbstack"
case strings.HasPrefix(platform, "Rancher Desktop") || strings.Contains(info.Name, "rancher-desktop"):

platform = "rancher-desktop"
case nodeps.IsWSL2() && info.OSType == "linux":
platform = "wsl2-docker-ce"
case !nodeps.IsWSL2() && info.OSType == "linux":
Expand Down

0 comments on commit be8da1c

Please sign in to comment.