-
-
Save abrkn/ea3837b5350642616c68 to your computer and use it in GitHub Desktop.
Use NFS for boot2docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
############################################################################ | |
# | |
# Use NFS for boot2docker | |
# | |
# 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 | |
############################################################################# | |
HOSTIP=$(boot2docker cfg | grep HostIP | cut -d'"' -f2) | |
GROUP=$(groups | cut -d' ' -f1) | |
echo "/Users -mapall=$USER:$GROUP $(boot2docker ip)" | sudo tee -a /etc/exports | |
boot2docker ssh sudo umount /Users | |
boot2docker ssh sudo /usr/local/etc/init.d/nfs-client start | |
boot2docker ssh sudo mount $HOSTIP:/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