- 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
- Create vagrant folder
vagrant init trusty
- Configure Vagrantfile to use docker provisioner
It will show error complainint that no Dockerfile found but will still install docker on the VM
This allows you to control docker daemon from OS X.
Using Vagrant Docker provisioner
Special Tiny Linux Distro for Docker & OS X
OS X, Vagrant, Docker, Sinatra
Questions open:
- 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)