INNER CODE UNIT · Go
isDockerDesktopWorkingOnWindows
ddev/ddev · winpkg/installer_test.go:783
func isDockerDesktopWorkingOnWindows() bool {
// Check if docker ps works directly on Windows
_, err := exec.RunHostCommand("docker.exe", "ps")
return err == nil
}
// cleanupTraditionalWindowsEnv cleans up Traditional Windows test environment
func cleanupTraditionalWindowsEnv(t *testing.T) {
t.Logf("Cleaning up Traditional Windows environment")
// Use full path since the current process doesn't see the PATH update from the installer
localAppData := os.Getenv("LOCALAPPDATA")
ddevPath := filepath.Join(localAppData, "Programs", "DDEV", "ddev.exe")
// Stop any running DDEV projects (ignore errors if ddev not installed)
if fileutil.FileExists(ddevPath) {
_, _ = exec.RunHostCommand(ddevPath, "poweroff")
}