Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherHX authored and github-actions committed Apr 25, 2023
1 parent e03ce61 commit 1eec7e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/runner/run_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,10 @@ func (rc *RunContext) GetBindsAndMounts() ([]string, map[string]string) {
scheme := daemonPath[:protoIndex]
if strings.EqualFold(scheme, "npipe") {
// linux container mount on windows, use the default socket path of the VM / wsl2
daemonPath = daemonPath[protoIndex+3:]
daemonPath = "/var/run/docker.sock"
} else if strings.EqualFold(scheme, "unix") {
daemonPath = daemonPath[protoIndex+2:]
daemonPath = daemonPath[protoIndex+3:]
} else if strings.IndexFunc(scheme, func(r rune) bool {
return (r < 'a' || r > 'z') && (r < 'A' || r > 'Z')
}) == -1 {
Expand Down

0 comments on commit 1eec7e6

Please sign in to comment.