Permission denied into oblivion. Need help mounting a NFS local volume share

Hi all, ive been working on this problem for about 24 hours and i dont seem to be getting any further ahead. Ive googled, searched stack overflow, reddit. The solutions i thought would work havent, Essentially i keep getting this error response:

docker compose up -d
[+] Running 0/1
⠙ Container jellyfin Creating 0.1s
Error response from daemon: failed to mount local volume: mount :/mnt/storage/container-data/jellyfin:/var/lib/docker/volumes/jellyfin_jellyfin_media/_data, data: addr=192.168.14.41,nfsvers=4: permission denied

Im trying to create a local volume to test out a jellyfin container. The volume is a NFS mount. I have edited the export file as such:

GNU nano 5.4 /etc/exports *

/etc/exports: the access control list for filesystems which may be exported

to NFS clients. See exports(5).

/mnt/storage/container-data/jellyfin 192.168.14.41(rw,sync,no_subtree_check,fsid=1,all_squash,anonuid=0,anongid=0)

The ip is where the nfs mount exists on my host machine. Ive pinged it from the Docker LXC being hosted in PROXMOX and it sees it successfully.
My docker-compose file is:

services:
jellyfin:
container_name: jellyfin
image: jellyfin/jellyfin
restart: unless-stopped
ports:
- 80:8096
user: root
volumes:
- ./container-data/config:/config
- ./cache:/cache
- jellyfin_media:/media

volumes:
jellyfin_media:
driver_opts:
type: “nfs”
o: “addr=192.168.14.41,nfsvers=4”
device: “192.168.14.41:/mnt/storage/container-data/jellyfin”

All the folders within the directory have read/write permissions and im running both from root (for the time being) Ive tried looking at UIDs, GIDs, and if i keep getting this permission error im gonna use a WMD on my computer and become a Luddite. I admit that this is my beginning journey into docker so i understand there will be bumps, but this is frustrating to say the least. If theres anyone out there who can help, id be completely in your debt. Ive also tried submitting the problem into CGPT and trying its suggestions, no dice. Im usually not bad a solving these problems, but this one has me stumped.

I give up. I formatted this post perfectly and when i submitted it it turned to crap. I cant win today.

To clarify, the modifications to exports, is that on the host machine? Can you mount the volume successfully on the host machine?

I avoid mounting NFS volumes directly on containers. My approach is;

  • mount the NFS volume on the host(s)
  • modify relevant files so it persists restarts of host
  • mount the local path directly to the container and let the host handle the NFS side of it

In saying all that, I found NFS to at times be unreliable and have opted to using sshfs for small deployments.

Add 4 spaces at the start of each line if you want code blocks recognized in reddit.

I figured it out. Instead of mounting it as a NFS in the docker container. I configured the share to the LXC container holding the Docker Instance. I then just mounted the volume but differently. Way easier for me after trying ad nauseum and accomplished the same goal of sharing my media folder.

awesome, thanks for clarifying!