We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67561b5 commit d9a11d5Copy full SHA for d9a11d5
pkg/wslapi/wslapi.go
@@ -9,6 +9,8 @@ import (
9
"github.com/shayne/go-wsl2-host/pkg/wslcli"
10
)
11
12
+const dockerDesktopDistros = "docker-desktop"
13
+
14
// DistroInfo data structure for state of a WSL distro
15
type DistroInfo struct {
16
Name string
@@ -49,6 +51,9 @@ func GetAllInfo() ([]*DistroInfo, error) {
49
51
return nil, fmt.Errorf("invalid field length for distro: %q", line)
50
52
}
53
info.Name = fields[0]
54
+ if strings.HasPrefix(info.Name, dockerDesktopDistros) {
55
+ continue
56
+ }
57
info.Running = fields[1] == "Running"
58
version, err := strconv.ParseInt(fields[2], 10, 0)
59
if err != nil {
0 commit comments