Skip to content

Instantly share code, notes, and snippets.

@lopespm
Last active June 20, 2016 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lopespm/f10b541f743eab8adcce1fcbcc5b3684 to your computer and use it in GitHub Desktop.
Save lopespm/f10b541f743eab8adcce1fcbcc5b3684 to your computer and use it in GitHub Desktop.
Docker - mount other folder other than /Users in osx
# 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