Skip to content

Instantly share code, notes, and snippets.

@leeor
Forked from sirkkalap/nfs-mount-boot2docker.sh
Last active October 25, 2015 20:08
Show Gist options
  • Save leeor/e70419fd7f656ca4bff3 to your computer and use it in GitHub Desktop.
Save leeor/e70419fd7f656ca4bff3 to your computer and use it in GitHub Desktop.
boot2docker nfs mount
#!/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.99.1:/Users /Users -o rw,async,noatime,rsize=32768,wsize=32768,proto=tcp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment