Skip to content
This repository has been archived by the owner on Jan 1, 2021. It is now read-only.

NFS support #817

Closed
chiedo opened this issue Apr 8, 2015 · 8 comments
Closed

NFS support #817

chiedo opened this issue Apr 8, 2015 · 8 comments

Comments

@chiedo
Copy link

chiedo commented Apr 8, 2015

What is the likelihood of getting NFS support? Shared folders are extremely slow. With Vagrant, I would just use the following in my vagrant file and things worked like a charm.
config.vm.synced_folder '.', '/vagrant', nfs: true, :mount_options => ['actimeo=2']

Is there anything on the radar for getting the same kind of option for boot2docker?

Thanks,

@AntonioMeireles
Copy link
Contributor

@chiedojohn fwiw and as a 'workaround' you can just try to use my vagrantified boot2docker which does just that ...

@chiedo
Copy link
Author

chiedo commented Apr 9, 2015

Thanks @AntonioMeireles I will check that out. That could be a game changer. Things are running so slowly as it currently stands!

@joelwurtz
Copy link

You can use nfs inside boot2docker, it is just not documented

I have done the following steps in order to have nfs share on boot2docker :

  • Share the nfs folder on your mac by adding it to your /etc/exports :
# /etc/exports
/Users 192.168.59.103 -alldirs -mapall=501:20
  • Reload your nfs :
sudo nfsd restart
  • Mount the volume on boot2docker
boot2docker ssh
sudo umount /Users
sudo /usr/local/etc/init.d/nfs-client start
sudo mount -t nfs -o rw 192.168.59.3:/Users /Users

@chiedo
Copy link
Author

chiedo commented Apr 10, 2015

Hey @joelwurtz,
Thanks for your suggestion. I'm having no luck though,

I am getting the following after attempting to mount the nfs on the client:
mount: RPC: Authentication error; why = Client credential too weak

And I did change 192.168.59.3 to my host IP address as assumed.

Any ideas?

Thanks!

@chiedo
Copy link
Author

chiedo commented Apr 10, 2015

Scratch that last statement. It looks like I wasn't supposed to change 192.168.59.3 to my host IP. Looks like it's working. Thanks for your help.

@chiedo
Copy link
Author

chiedo commented Apr 10, 2015

Thanks again for all of your help.

I went ahead and wrote a quick tutorial for whoever else comes across this page on how to automate that process so it's automatically is configured each time boot2docker is started.

https://gist.github.com/chiedojohn/4d2cc894f53c3da1910c

@thaJeztah
Copy link

@chiedojohn perhaps you should create a pull request to add this as a document to the docs?

@chiedo
Copy link
Author

chiedo commented Apr 13, 2015

@thaJeztah good call. The pull request has been submitted.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants