Skip to content

Instantly share code, notes, and snippets.

@sirkkalap
Last active September 3, 2016 21:23
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save sirkkalap/40261ed82386ad8a6409 to your computer and use it in GitHub Desktop.
Save sirkkalap/40261ed82386ad8a6409 to your computer and use it in GitHub Desktop.
A script to switch boot2docker to use NFS instead of VBoxfs for speed and proper permissions
#!/bin/bash
############################################################################
# Note: Special network 192.162.50.3 to use Cisco Anyconnect Split tunnel.
#
# On OX X host you need to add a line (and file) /etc/exports:
# /Users -mapall=[youruser]:[yourgroup] [boot2dockerip]
# See: https://quip.com/EDYLAAfuup5M (no login needed)
# See also: https://github.com/boot2docker/boot2docker/issues/587#issuecomment-66935011
# See also: http://support.apple.com/en-us/HT202243
# See also: https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man5/exports.5.html
#############################################################################
sudo umount /Users
sudo /usr/local/etc/init.d/nfs-client start
sudo mount 192.168.50.3:/Users /Users -o rw,async,noatime,rsize=32768,wsize=32768,proto=tcp
@keipes
Copy link

keipes commented Apr 14, 2015

I resolved the: mount: RPC: Authentication error; why = Client credential too weak error by adding the following to /etc/nfs.conf:

nfs.server.mount.require_resv_port = 0

Then restarting the nfs daemon with:

nfsd restart

@haggen
Copy link

haggen commented Apr 29, 2015

After a while I got it working. Thanks for the help!

https://gist.github.com/haggen/f84f55e3ed2c9c930335

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