Open Aaron-Rumpler opened 3 months ago
I forgot to mention that if I manually mount the network share onto the directory created for the share /run/desktop/mnt/host/uC/[SMB_SERVER]/[SMB_SHARE]
, the bind-mounting that drive onto new containers works as expected.
Description
Attempting to bind mount from a drive other than
C:
into a container doesn't work. Docker bind mounts the correct path from inside thedocker-desktop
WSL 'distro', but the path isn't mounted into WSL. I've tested this both with an external USB drive as well as SMB shares that are mapped to a drive letter.Reproduce
J:
in this example)docker run -it --rm --mount type=bind,src=J:\,dst=/mnt/j debian
I receive the following error (
[...]
used as placeholder):Looking into the
docker-desktop
WSL 'distro', I see that/run/desktop/mnt/host/uC/[SMB_SERVER]/[SMB_SHARE]/[PATH]
has been created, but doesn't have the network share mounted to it. I observer the same behaviour with external USB drives.Expected behavior
The UNC path of
J:
(/run/desktop/mnt/host/uC/[SMB_SERVER]/[SMB_SHARE]/[PATH]
) should have been mounted onto the WSL 'distro' with thedrvfs
driver before creating the container.docker version
docker info
Diagnostics ID
98DB93DB-C3B2-4238-9F49-77B4C5B861DF/20240819065953
Additional Info
No response