Skip to content

Instantly share code, notes, and snippets.

@yuriteixeira
Last active August 29, 2015 14:07
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 yuriteixeira/1b8eb1c2ab4a127e827f to your computer and use it in GitHub Desktop.
Save yuriteixeira/1b8eb1c2ab4a127e827f to your computer and use it in GitHub Desktop.
Boot2Docker + Virtual Box Additions (will make volume share work with Mac OS X)
#!/bin/bash
boot2docker down
wget http://static.dockerfiles.io/boot2docker-v1.2.0-virtualbox-guest-additions-v4.3.14.iso
mv ~/.boot2docker/boot2docker.iso ~/.boot2docker/boot2docker.iso.backup
cp boot2docker-v1.2.0-virtualbox-guest-additions-v4.3.14.iso ~/.boot2docker/boot2docker.iso
VBoxManage sharedfolder add boot2docker-vm -name home -hostpath /Users
boot2docker up
# Just run your container pointing to any mac folder inside /Users
# docker run -i -t -v ~/your-project:/data/your-project ubuntu:trusty /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment