I am currently setting up Traefik with LetsEncrypt in docker on a different machine and using NFS as volume mounts in docker. One of the things that LetsEncrypt does is create an acme.json file and then attempts to chmod 600 the file so only the user in the docker container (in this case root) can modify the file. I get an error in the docker logs saying the chmod does not have permission to change the file even though it created it. I have actually went into the /mnt/rusty/bucket/traefik/letsencrypt folder on truenas and attempted to manually do the chmod myself as my user, as admin and as root but all of them end with a permission denied. Does anyone have any idea what is going wrong here?
My setup:
cat /etc/exports
shows on my truenas scale
"/mnt/rusty/bucket/traefik"\ 192.168.100.0/24(sec=sys,rw,no_root_squash,no_subtree_check)
mount | grep nfs
on my docker host shows
:/mnt/rusty/bucket/traefik on /var/lib/docker/volumes/traefik_data/_data type nfs4 (rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.100.6,local_lock=none,addr=192.168.100.14)
on my my dataset I do have and acl group set up as below