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

mount.nfs: access denied by server while mounting 172.17.0.2:/mnt/nfstest/

Open ginger111 opened this issue 4 years ago • 1 comments

On my docker server which started properly with next command

sudo docker run 
-v /mnt/nfstest/:/mnt/nfstest 
-v /etc/exports:/etc/exports:ro --privileged
 -p 2049:2049 --security-opt apparmor=erichough-nfs
  erichough/nfs-server

I am running a Virtual Machine Ubuntu 20.04 on my Windows 10 host and run this docker on my VM. The problem is that my docker's IP is 172.17.0.2, and my home IP domain is 192.168.0.0/24 What bothers me I s that I don't understand why docker has to be on the same network or if he has to be when he works on another OSI layer and requires only open ports?

I get this error from my VM

sudo mount 172.17.0.2:/ /mnt/nfstest
mount.nfs: access denied by server while mounting 172.17.0.2: /mnt/nfstest

and from windows I can't see the docker and shared volume

ginger111 avatar Dec 05 '20 16:12 ginger111

nfs server not work in docker-in-docker or docker-in-virtual_machine, i am even try ganesha and still fail.

valador avatar Nov 29 '21 09:11 valador