docker-nfs-client icon indicating copy to clipboard operation
docker-nfs-client copied to clipboard

client fails with "access denied by server"

Open hjwp opened this issue 10 years ago • 2 comments

to reproduce (randomly using /etc as a folder to export)

docker run -d --name nfs cpuguy83/nfs-server /etc
docker run -d --name nfs-client --link nfs:nfs cpuguy83/nfs-client /etc:/etc2
docker logs nfs-client
mount.nfs: access denied by server while mounting 172.17.0.212:/etc

hjwp avatar May 07 '15 16:05 hjwp

@hjwp you should use "--privileged" option when start nfs-client container

docker run -d --name nfs-client --link nfs:nfs --privileged cpuguy83/nfs-client /etc:/etc2

kiwenlau avatar Jan 11 '16 07:01 kiwenlau

I am getting the same error when trying to mount from the host system. It works when I use the IP of docker0 (172.17.0.2) but not when I use my public IP.

SubhamoyS avatar Feb 20 '17 09:02 SubhamoyS