I want to run an NFS server in a privileged Docker container.
A simple “modprobe nfs” on the host is not sufficient according to my tests – starting an NFS server in the container says “Not starting NFS kernel daemon: no support in current kernel”. The modprobe itself worked, however, as I can see “nfs” afterwards in /proc/modules on the host.
Then, I installed the (Ubuntu) package
nfs-kernel-server on the host, and now, the NFS server in the container starts successfully. However, I wonder whether a full-fledged NFS server on the host truly is necessary.
So, what are the minimum prerequisites on the host for that?