Hi All
I am hoping someone can help me, I have used Docker for awhile on a RaspberryPI and Synology so I understand the basics (very basics) but I am really struggling to get it working on my Windows device for when I want to test something!
I have currently installed Docker Desktop for Windows (Docker Desktop 4.10.1 (82475)) which is using WSL 2 Debian for the containers.
All my configs and files are saved on a network drive lets say \192.44.0.100 and then in various shared folders sitting under this drive.
These are mapped in Windows as Network drives m:\ n:\ etc I want to mount these as volumes so I can use them in containers I am testing/running on the Windows device.
I can’t get them to be used when in the compose I use z/folder:/folder etc
I then tried
\192.44.0.100\folder:/folder
again never worked.
Finally I tried both CIFS and NFS mounts of the volume.
docker volume create --driver local --opt type=cifs --opt o=username=USERNAME,password=PASSWORD,uid=UID,gid=GID,vers=3.0 --opt device=//192.44.0.100/folder folder
docker volume create --driver local --opt type=nfs --opt o=nfsvers=4,addr=192.44.0.100,rw --opt device=:/folder folder
all work as in it creates a volume but when I navigate to \wsl.localhost\docker-desktop-data\version-pack-data\community\docker\volumes on my windows device and select the folder there are no files shown.
Username and Password are correct I have tried both with and without the GUID info but the issue remains.
Does anyone know what I am doing wrong please? and how I can mount a network drive for use as a volume?
Thanks