Hi All,
Let me start with some basic basic background on my set up, I have a server running Proxmox with some Ubuntu containers. I have a separate server running TrueNas with a share that has both NFS & SMB set up. I can see this share in Windows 11 and read and write to it.
One of the Ubuntu containers is able to see this share via NFS and read and write to it too. I am testing Sonarr, Prowlarr & Qbittorrent Docker containers and got the basics set up, Sonarr can find episodes via Prowlarr of a TV show, hand it off to Qbittorrent to download and then move it from the download folder to the TV folder. Both the download folder and the TV folder are on the TrueNas server.
I then set up a Docker container for AudioBookShelf in the same Ubuntu CT and that can also read and write to the NFS share.
My issue is that I tried to set up another Ubuntu CT on the Proxmox server but cannot seem to access the NFS share on the TrueNas server.
This is what I did (which I think was the same process as the working CT)
- 1/Create a privileged conatiner
- 2/ Update and upgrade the CT
- 3/ Install nfs-common
- 4/ Create a directory in the CT in the /mnt directory for the NFS share
- 5/ added this line to the fstab file in /etc
192.168.0.188:/mnt/store/test-share /mnt/test-share nfs defaults 0 0
However, when I run mount -a
I get this error message mount.nfs: access denied by server while mounting 192.168.0.188:/mnt/store/test-share
Running df -h
does not show the mount obviously but it does in the working CT
As a further test, I cloned the working CT, deleted all the Docker containers and I can still see the NFS just fine.
I have probably missed a step while setting up the new CT but I’m not sure what.
Can anyone offer some help?
Lem453@lemmy.ca 1 year ago
These comments all make this seem super complicated. I have a ZFS array on proxmox that exports itself over NFS and also an unraid server that has a share exported over NFS. I mount both into docker containers as needed. I’m in my phone so I’ll just copy and paste my install notes, hope that helps:
Proxmox Host Setup for NFS: -> proxmox install NFS server: apt install nfs-kernel-server -> create a filesystem for dockerData (makes snapshots easier and limits permissions) -> zfs create zfspool1/dockerData -> zfs set sharenfs=‘rw=@192.168.37.0/24,no_root_squash’ zfspool1/dockerdata -> zfs get sharenfs (to make sure only specific file systems are shared)
unraid: -> export NFS share with ‘private’ and set rule to: 192.168.37.0/24(rw)
Docker host setup (in my case I run an alpine server VM on proxmox:
apk add nfs-utils -> rc-update add nfsmount -> rc-service nfsmount start