Skip to content

Commit 42b31f0

Browse files
authored
Merge pull request #482 from docker/x/path
feat(chore/windows): move socket path
2 parents 60ebfbf + a3e5276 commit 42b31f0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

x/api/defaults_windows.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ import (
2222
)
2323

2424
func DaemonSocketPath() string {
25-
base := os.Getenv("ProgramData")
25+
base := os.Getenv("LOCALAPPDATA")
2626
if base == "" {
27-
base = `C:\ProgramData`
27+
base = filepath.Join(os.Getenv("USERPROFILE"), "AppData", "Local")
2828
}
2929
return filepath.Join(base, "DockerSecretsEngine", "service", "daemon.sock")
3030
}

0 commit comments

Comments
 (0)