If you want NFS shares and are concerned about security, it's probably best to run a "proper" VM (rather than within a container).
If you are only sharing with trusted hosts and security isn't such an issue, then AFAIK you should be able to get it to work in a privileged container and/or with nesting enabled.
Running as a privileged container will likely be relatively secure (it's not as bad as Docker's "privileged" containers), but will have knock on effects that may cause issues with some services (some of the systemd hardening measures don't work in a privileged container - so some services will need modification to run).
Please be extra aware, that enabling nesting on a privileged container does mean that the root user within the container can potentially escape (and gain some degree of control over the host root account). Hence why I suggest using a "proper" VM if you plan to expose the NFS shares to untrusted end users. Note that whilst enabling nesting on unprivileged containers does still have implications to the degree of isolation, enabling nesting on an unprivileged container doesn't have the same risk (because unlike in a privileged container, the root user within the unprivileged container maps to an unprivileged user on the host).
If you'd like to persevere, here are a couple of promising looking results from google:
If you are concerned about security, probably best to run a VM
If you want NFS shares and are concerned about security, it's probably best to run a "proper" VM (rather than within a container).
If you are only sharing with trusted hosts and security isn't such an issue, then AFAIK you should be able to get it to work in a privileged container and/or with nesting enabled.
Running as a privileged container will likely be relatively secure (it's not as bad as Docker's "privileged" containers), but will have knock on effects that may cause issues with some services (some of the systemd hardening measures don't work in a privileged container - so some services will need modification to run).
Please be extra aware, that enabling nesting on a privileged container does mean that the root user within the container can potentially escape (and gain some degree of control over the host root account). Hence why I suggest using a "proper" VM if you plan to expose the NFS shares to untrusted end users. Note that whilst enabling nesting on unprivileged containers does still have implications to the degree of isolation, enabling nesting on an unprivileged container doesn't have the same risk (because unlike in a privileged container, the root user within the unprivileged container maps to an unprivileged user on the host).
If you'd like to persevere, here are a couple of promising looking results from google: