Skip to content

Commit 29c9d36

Browse files
authored
Merge pull request #8362 from mook-as/moby/raw-socket
Add `/var/run/docker.sock.raw` in the VM
2 parents 22458ed + 8529b79 commit 29c9d36

File tree

2 files changed

+4
-0
lines changed
  • pkg/rancher-desktop/backend
  • src/go/wsl-helper/pkg/dockerproxy

2 files changed

+4
-0
lines changed

pkg/rancher-desktop/backend/lima.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1895,6 +1895,9 @@ export default class LimaBackend extends events.EventEmitter implements VMBacken
18951895
}
18961896
break;
18971897
case ContainerEngine.MOBY:
1898+
// The string is for shell expansion, not a JS template string.
1899+
// eslint-disable-next-line no-template-curly-in-string
1900+
await this.writeConf('docker', { DOCKER_OPTS: '--host=unix:///var/run/docker.sock --host=unix:///var/run/docker.sock.raw ${DOCKER_OPTS:-}' });
18981901
await this.startService('docker');
18991902
break;
19001903
case ContainerEngine.NONE:

src/go/wsl-helper/pkg/dockerproxy/start.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ func Start(port uint32, dockerSocket string, args []string) error {
105105

106106
args = append(args,
107107
fmt.Sprintf("--host=unix://%s", dockerSocket),
108+
"--host=unix:///var/run/docker.sock.raw",
108109
"--host=unix:///var/run/docker.sock")
109110
cmd := exec.Command(dockerd, args...)
110111
cmd.Stdout = os.Stdout

0 commit comments

Comments
 (0)