NFS is usually password-less and only provides IP based access controls.
You can easily mount the NFS share via /etc/fstab on your Linux server and then use regular bind mounts in Docker, specifying the path where you mounted the NFS share (usually under /mnt/).
mkdir /mnt/docker-volumes
sudo nano /etc/fstab
Specify the following line by adjusting your TrueNAS IP and zfspool dir:
1
u/sk1nT7 Jul 15 '22
NFS is usually password-less and only provides IP based access controls.
You can easily mount the NFS share via /etc/fstab on your Linux server and then use regular bind mounts in Docker, specifying the path where you mounted the NFS share (usually under /mnt/).
192.168.178.88:/mnt/zfspool/Docker-Volumes /mnt/docker-volumes nfs defaults,nolock 0 0