This message was deleted.
# rancher-desktop
a
This message was deleted.
f
You should just try bind-mounting
/var/run/docker.sock
. The host socket is not mapped into the VM (which doesn't make sense, as it is just the VM socket forwarded to the host). The socket inside the VM is in the default location and should be group-writable:
Copy code
$ rdctl shell ls -l /var/run/docker.sock
srw-rw----    1 root     docker           0 Apr 25 15:55 /var/run/docker.sock
$ rdctl shell id
uid=501(jan) gid=1000(jan) groups=101(docker),1000(jan)
That said, I haven't tried DinD myself, so don't know if it is going to work, or needs anything else. Please report back here!
b
That worked perfectly, but I don’t entirely understand why it worked perfectly.
f
All container mounts happen between the VM and the container. If you mount something from the host, it first is mounted from the host into the VM, and then from the VM into the container. Since
/var/run
is not mounted from the host, you can just mount the native socket from the VM. Does that make sense?
The following locations are mounted from the host into the VM:
Copy code
- location: "~"
  - location: /tmp/rancher-desktop
  - location: /Volumes
  - location: /var/folders
  - location: /private/tmp
  - location: /private/var/folders
  - location: /Applications/Rancher <http://Desktop.app/Contents/Resources/resources|Desktop.app/Contents/Resources/resources>
Everything else comes from the VM filesystem
/var/folders
is mounted because the
$TMPDIR
location on the host points to a directory in there
b
That makes sense, but I would never in a million years have figured that out on my own. May I recommend a stack overflow post or some documentation note specific to DinD in non-admin mode?
f
Sure, feel free to open an issue on the docs repo at Issues · rancher-sandbox/docs.rancherdesktop.io
👀 1
1
b