Last active
June 20, 2016 16:11
-
-
Save lopespm/f10b541f743eab8adcce1fcbcc5b3684 to your computer and use it in GitHub Desktop.
Docker - mount other folder other than /Users in osx
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
# from https://github.com/docker/machine/issues/1826#issuecomment-143863060 | |
#if using boot2docker | |
#create file bootlocal.sh inside /var/lib/boot2docker; so it will persist and get executing when boot2docker images runs | |
##if target folder not present; create one | |
mkdir [target folder] | |
##mount the hostfolder; it should be shared with virtualbox already | |
##[hostfolder] is the folder name you gave when sharing the folder, not the path | |
sudo mount -t vboxsf -o uid=1000,gid=1000 [hostfolder] [target folder] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment