packer.io script to build a basebox with installed Docker, docker-compose for vagrant.
- Installed Virtualbox (tested with 5.1.28 r117968)
- Installed Packer (tested with 1.1.0)
- Clone this git repository into the directory packer_build
git clone https://github.com/reinblau/vagrant-packer.git
- Navigate into the vagrant-packer directory
cd vagrant-packer
- Run the command
packer build dockerhost_local.json
-
After the packer is ready it creates a file called packer_virtualbox-iso_virtualbox.box which can be used in vagrant
-
Add the box to vagrant
vagrant box add --name=docker packer_virtualbox-iso_virtualbox.box
-
Start new vagrant box
vagrant up