Yep this is another niche tech note after I spend ages figuring it out.
So I wanted to use an NFS share hosted on OpenMediaVault as a volume for a Docker container running on Portainer. It turns out there are a few default things that need adjusting to make this work and if you don’t get it right it just puts the volume on the local drive.
To use an NFS share do the following
- Name the volume
- Select NFS Volume
- Enter the hostname
- Select NFS instead of NFS4 in the version field
- add a colon before /export/sharename so it is :/export/sharename
That’s it – now you can successfully use the NFS share as docker volume without a pile of errors!