mihies
Dabbler
- Joined
- Jan 6, 2022
- Messages
- 32
Hi guys,
I'm running alpine as virtual machine and within it the docker. I'd like to use mounted ZFS datasets for docker volumes.
On TrueNAS (Cobia) side:
I have a local group docker_share consisting with root and my username members.
I'd create a dataset, set its ACL Mode to SMB/NFS4, set owner user to root and group to docker_share, set NFS4 permissions to user@, group@ and everyone@ to Full Control.
Then I'd enable NFS share for said dataset.
On Alpine side:
I'd mount NFS share from above (fstab:
It almost works except when I start a docker container using this volume it gets "Permission denied" here and there.
Basically the question is, how do I enable permissions on dataset/NFS share in the way docker will work. I thought everyone@ should do the trick.
I also guess I'm missing something stupid.
TIA
I'm running alpine as virtual machine and within it the docker. I'd like to use mounted ZFS datasets for docker volumes.
On TrueNAS (Cobia) side:
I have a local group docker_share consisting with root and my username members.
I'd create a dataset, set its ACL Mode to SMB/NFS4, set owner user to root and group to docker_share, set NFS4 permissions to user@, group@ and everyone@ to Full Control.
Then I'd enable NFS share for said dataset.
On Alpine side:
I'd mount NFS share from above (fstab:
)TRUENAS_IP:/mnt/myvolume /mnt/myvolume nfs4 rw,hard,intr,rsize=8192,wsize=8192,timeo=14 0 0
It almost works except when I start a docker container using this volume it gets "Permission denied" here and there.
Basically the question is, how do I enable permissions on dataset/NFS share in the way docker will work. I thought everyone@ should do the trick.
I also guess I'm missing something stupid.
TIA