A pain in the bum but I got there.
I was trying to share a NFS share with an immich docker container to have a play with importing videos. The Debian could see it but the Image could not. I am not sure if it is to do with the limit on the omv NFS IP address range or something but I knew if my Windows machine could see it then the damn WSL2 should be able to see it too, natively!
In PowerShell wsl --list --verbose
lists which WSL are in use, and confusingly it gives two but the * suggested that this was the one to work with.
NAME STATE VERSION
* Debian Running 2
docker-desktop Running 2
I tried and tried to mount the NFS share there, but though the Debian could see it, the Docker image could not. I share the same folder using SMB so was able to get that in to WSL using:
wsl -d Debian
sudo mkdir /mnt/p
sudo mount -t drvfs P: /mnt/p
This makes the p: drive appear on /mnt/p which I could then get working in the yaml with:
volumes:
- /mnt/p:/mnt/p_drive
This worked so nicely that I couldn’t think why the NFS share worked so went back and tried it all over again. It immediately worked!
Argh.