Skip to content

Instantly share code, notes, and snippets.

@meleksomai
Forked from haggen/README.md
Last active August 29, 2015 14:21
Show Gist options
  • Save meleksomai/54a99c19fa168d21b823 to your computer and use it in GitHub Desktop.
Save meleksomai/54a99c19fa168d21b823 to your computer and use it in GitHub Desktop.

Get boot2docker working with nfs instead of vboxsf.

Tested on:

Boot2Docker-cli version: v1.6.0
Git commit: 9894ae9

In your Mac, open the file /etc/nfs.conf and add this line:

nfs.server.mount.require_resv_port = 0

Then, open /etc/exports and add this line, changing the values to match your case:

/Users/<your username> -mapall=<your username>:staff <mac's ip address>

With both files changed time to apply the new settings:

sudo nfsd restart

Finally, ssh into your boot2docker machine and run:

sudo umount /Users
sudo mkdir /Users/<your username>
sudo /usr/local/etc/init.d/nfs-client start
sudo mount <mac's ip address>:/Users/<your username> /Users/<your username> -o rw,async,noatime

You'll notice I'm mounting an especific user's directory instead of the Users directory itself, that's because of permissions, I couldn't share the Users directory on my behalf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment