Forked from dduportal/boot2docker-vagrant-box, thanks Damien !
My fork is a simpler version (no parallels support) with my personal touch.
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.
This project aims to follow mainly docker stable releases. Meaning that each docker release, especially test ones may not be published here.
For more information please check docker stable releases and time based release schedule.
The box is available on Hashicrop's Atlas, making it very easy to use it:
- Download and include the proposed vagrant template in your project
- Run your environment with
vagrant up
If you want the actual box source file, you can download it from the release page.
By default, we use a NAT interfaces, which have its ports 2375 and 2376 (Docker IANA ports) forwarded to the loopback (localhost) of your physical host.
If you want to tune contents, you can see how to achieve this with something like vagrant template.
If you want to recreate the box, rather than using the binary, then you can use the scripts and Packer template within this repository to do so in seconds.
To build the box, first install the following prerequisites:
- Make as workflow engine
- Packer as vagrant basebox builder
- VirtualBox
- curl for downloading things
- bats for testing
Then run this command to build the box for VirtualBox provider:
make virtualbox