/boot2docker-vagrant-box

Packer scripts to build a Vagrant-compatible boot2docker box.

Primary LanguageShell

boot2docker Vagrant Box

This repository contains the scripts necessary to create a Vagrant-compatible boot2docker box. If you work solely with Docker, this box lets you keep your Vagrant workflow and work in the most minimal Docker environment possible.

Usage

If you just want to use the box, then download the latest box from the releases page and vagrant up as usual! Or, if you don't want to leave your terminal:

$ vagrant init yungsang/boot2docker
$ vagrant up
$ export DOCKER_HOST=tcp://localhost:2375
$ docker version

Vagrant Up Boot2Docker

Building the Box

If you want to recreate the box, rather than using the binary, then you can use the Packer template and sources within this repository to do it in seconds.

To build the box, first install the following prerequisites:

Then, just run make. The resulting box will be named boot2docker-virtualbox.box and boot2docker-parallels.box. The entire process to make the box takes about 20 seconds.

License

CC0
To the extent possible under law, the person who associated CC0 with this work has waived all copyright and related or neighboring rights to this work.