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.
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
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:
- Packer (at least version 0.5.2, 0.6.1 for Parallels)
- VirtualBox
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.
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.
- boot2docker is under the Apache 2.0 license.
- Vagrant: Copyright (c) 2010-2014 Mitchell Hashimoto, under the MIT License