MCPcopy Create free account
hub / github.com/ddev/ddev / IsOrbStack

Function IsOrbStack

pkg/dockerutil/providers.go:69–81  ·  view source on GitHub ↗

IsOrbStack detects if running on OrbStack

()

Source from the content-addressed store, hash-verified

67
68// IsOrbStack detects if running on OrbStack
69func IsOrbStack() bool {
70 info, err := GetDockerClientInfo()
71 if err != nil {
72 return false
73 }
74 if strings.HasPrefix(info.OperatingSystem, "OrbStack") {
75 return true
76 }
77 if strings.Contains(info.Name, "orbstack") {
78 return true
79 }
80 return false
81}
82
83// IsPodman detects if running on Podman (either rootless or root)
84func IsPodman() bool {

Callers 2

GetDockerPlatformFunction · 0.92
activeDockerProviderFunction · 0.92

Calls 1

GetDockerClientInfoFunction · 0.85

Tested by

no test coverage detected