Use docker instead of a VM (i.e., virtualbox) in Vagrant as a provider to save system resources (and be more fashionable!)
Use this sample code to build your own boxes.
Read latest presentation about this project: https://github.com/npoggi/vagrant-docker/blob/master/presentation/NPoggi_Vagrant-Docker.pdf?raw=true
Fork, and send your pull requests!
The image is currently based on Ubuntu:12.04 It features Puppet [Chef is optional] and a sample NginX web Server
cd vagrant-docker
sudo vagrant up
Navigate to: http://localhost:8080/
DOCKER_IMAGE='npoggi/vagrant-docker' sudo vagrant up --provision
DOCKER_IMAGE='npoggi/vagrant-docker-provisioned' sudo vagrant up --provision
In case you switch images do a vagrant provision (or vagrant up --provision) instead of just vagrant up. As docker by default stops services if not specified in the Dockerfile. Puppet as the provisioner with make sure they are UP!
Originally presented at the Docker meetup in Barcelona: http://www.meetup.com/docker-barcelona-spain/events/193336922/