Skip to content

Instantly share code, notes, and snippets.

@tomstuart
Created June 25, 2014 15:02
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 tomstuart/8a4ec2a53b12fa122a49 to your computer and use it in GitHub Desktop.
Save tomstuart/8a4ec2a53b12fa122a49 to your computer and use it in GitHub Desktop.
Setting up boot2docker for use with fig
$ mkdir ~/.boot2docker
$ curl http://static.dockerfiles.io/boot2docker-v1.0.0-virtualbox-guest-additions-v4.3.12.iso > ~/.boot2docker/boot2docker.iso
$ boot2docker init
$ VBoxManage sharedfolder add boot2docker-vm -name home -hostpath /Users
$ boot2docker up
$ sudo sh -c "echo `boot2docker ip 2>/dev/null` boot2docker >> /etc/hosts"
$ echo export DOCKER_HOST=tcp://$(boot2docker ip 2>/dev/null):2375 >> .bash_profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment