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.
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: