I had problems mounting NFS shares in my docker container, error would appear with permissions denied. This is the fix which worked for me.
Inside the container execute the following.
1 2 3 |
apt-get update apt-get install nfs-common -y |
on the host execute the following to mount the share.
1 |
docker exec --privileged=true 191b603b04b9 mount -t nfs -o nolock 192.168.1.5:local /mnt |