NFS share mount in container

I am trying to moun NFS share in lxd container but I can’t. I am trying into a container in this way

#apt-get install nfs-common

vi /etc/fstab

10.xxx.xxx.xxx:/mnt/L-NFS/LXD /mnt/backup nfs rw 0 0
#mount -a (this command show this line “mount.nfs: Operation not permitted”)

where is my fault? the container has Ubuntu 16.04

You need to make a change in the configuration of the container. See https://github.com/lxc/lxd/issues/1826

1 Like