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

  1. Name the volume
  2. Select NFS Volume
  3. Enter the hostname
  4. Select NFS instead of NFS4 in the version field
  5. 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!