Skip to content

Instantly share code, notes, and snippets.

@madis
Created May 7, 2014 09:31
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 madis/9d6f914f77460fbd87fd to your computer and use it in GitHub Desktop.
Save madis/9d6f914f77460fbd87fd to your computer and use it in GitHub Desktop.
Docker findings

Gettings started with OS X, Vagrant & VirtualBox

  1. Create empty box with veewee You should have newest VirtualBox & Vagrant installed.
gem install veewee
veewee vbox define 'ubuntu-14.04-server' 'ubuntu-14.04-server-amd64' --workdir=/Users/madis/infra/veewee
# Change your box (e.g. add memory, it has 512MB by default)
veewee vbox build 'ubuntu-14.04-server' --workdir=/Users/madis/infra/veewee
# Wait ~10 min (Installing ubuntu is fast, compiling ruby takes time)

Shut down & export basebox and import for Vagrant use:

veewee vbox halt ubuntu-14.04-server
veewee vbox export ubuntu-14.04-server
vagrant box add --name trusty
  1. Create vagrant folder
vagrant init trusty
  1. Configure Vagrantfile to use docker provisioner

It will show error complainint that no Dockerfile found but will still install docker on the VM

  1. Install OS X docker client

This allows you to control docker daemon from OS X.


Links:

Using Vagrant Docker provisioner

Using docker from OS X

Special Tiny Linux Distro for Docker & OS X

OS X, Vagrant, Docker, Sinatra

Questions open:

  1. How to connect to the docker daemon in vm (maybe helps http://michaelneale.blogspot.com/2014/02/docker-on-os-x-docker-is-clientserver.html)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment