NFS server in container

keeka

Well-Known Member
Dec 8, 2019
204
24
58
Hi

I am trying to run nfs server in a container (alpine-3.10).

Apparently NFS requires some adjustments to the container and I have seen various suggestions. Privileged mode, this seems absolutely necessary. Features/nested - enabled EDIT - seems this is needed.

I enabled priveleged mode. However, rpc.statd would not start. I tried the workaround detailed here:
https://unix.stackexchange.com/questions/407148/unable-to-start-nfs-server-on-alpine-linux-lxc
which works!

However, I'd prefer doing this without totally overriding the lxc.cap config in /usr/share/lxc/config as in the example.
I tried:
lxc.cap.keep = setpcap
But that doesn't work, the container will not start.

Is it possible to retain (or add back in) a config variable, without overriding the default file in the manner of the fix above?

Many thanks.
 
Last edited:
Replying to my own post here, I'm now wondering if there is any point having a container solely to run an nfs _kernel_ server.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!