Skip to content

Commit 3734cbd

Browse files
fix: Strange mounting location ("host/\") when running from root of drive on Windows
1 parent e68d188 commit 3734cbd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/dockerized.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,10 @@ func main() {
8383

8484
hostName, _ := os.Hostname()
8585
hostCwdDirName := filepath.Base(hostCwd)
86-
containerCwd := "/host/" + hostCwdDirName
86+
containerCwd := "/host"
87+
if hostCwdDirName != "\\" {
88+
containerCwd += "/" + hostCwdDirName
89+
}
8790

8891
runOptions := api.RunOptions{
8992
Service: commandName,

0 commit comments

Comments
 (0)