adlogix / docker-machine-nfs

Activates NFS on docker-machine
MIT License
794 stars 104 forks source link

mounting {ip}:/Users on /Users failed: Bad file descriptor #64

Closed bennypowers closed 7 years ago

bennypowers commented 7 years ago

docker-machine 0.8.1 el cap

begin
  curl -s https://raw.githubusercontent.com/adlogix/docker-machine-nfs/master/docker-machine-nfs.sh |  sudo tee /usr/local/bin/docker-machine-nfs > /dev/null
  sudo chmod +x /usr/local/bin/docker-machine-nfs
  docker-machine rm dev
  docker-machine create -d virtualbox dev
  docker-machine-nfs dev --nfs-config="-alldirs -maproot=0"
end 

👇👇👇

Cannot detect the NFS mount :(

🙁🙁🙁

docker-machine ssh dev sudo mount -t nfs -o noacl,async 192.168.99.1:/Users /Users
mount: 192.168.99.1:/Users failed, reason given by server: Permission denied
mount: mounting 192.168.99.1:/Users on /Users failed: Bad file descriptor
ellisio commented 7 years ago

This is happening for me as well.

Installed via the Homebrew method. Ran docker-machine-nfs default, nothing fancy.

ellisio commented 7 years ago

PR #65 submitted for this issue. In the mean time, edit line 357 and remove the -network flag. This will fix /etc/exports and initialize NFS correctly on macOS.

ahansson89 commented 7 years ago

Worked for me on

macOS Sierra Docker Machine 0.8.2 Docker 1.12.2 VirtualBox 5.1.8 r111374

tonivdv commented 7 years ago

That's interesting. I don't have any issues on my setup ...

macOs Sierra Docker Machine 0.8.2 Docker 1.12.2 VirtualBox 5.1.6 r110634

What do you get when running nfsd checkexports ?

tonivdv commented 7 years ago

On second thought, I do have the issue now ... But it does work for the ip-range. So the -network flag should only be used when the ip-range config is being used

bennypowers commented 7 years ago

confirmed fix thanks