Skip to content
This repository has been archived by the owner on Dec 1, 2018. It is now read-only.

Latest commit

 

History

History
100 lines (63 loc) · 3.78 KB

README.md

File metadata and controls

100 lines (63 loc) · 3.78 KB

Boot2docker Vagrant Box

Boot2docker Vagrant box for optimized Docker and Docker Compose use on Mac and Windows.

What is this?

This is a temporary solution to achieve better performance with synced folders and docker data volumes on Mac and Windows.

The stock boot2docker/docker-machine mounts host volumes via VirtualBox Guest Additions (vboxsf) mode, which is is terribly slow. Much better performance can be achieved with nfs (Mac), smb (Windows) or rsync (Mac and Windows).

Prerequisites

  1. VirtualBox 5.1.x
  2. Vagrant 1.8.5+
  3. Babun - A Linux-type shell + winpty, Windows only

For best result and a clean setup it is recommended to remove any previous versions of VirtualBox, Vagrant, boot2docker, docker and docker-compose.

Automatic installation and updates of prerequisites is available via the one-liners below.
Make sure to stop all VirtualBox VMs prior to performing updates.

Note: If you already have brew/cask and necessary versions of VirtualBox and Vagrant installed, prefer to install them manually or would like to not update these components automatically, prefix the command with B2D_INSTALL_MODE=docker .

Mac

Prerequisites are installed using brew/cask (brew and cask will be installed if missing).

bash <(curl -s https://raw.githubusercontent.com/blinkreaction/boot2docker-vagrant/master/scripts/presetup-mac.sh)

Windows

All automated scripts and instructions in this project assume using Babun shell and are not tested with other shells.

Prerequisites are installed using babun and chocolatey (chocolatey will be installed if missing).

bash <(curl -s https://raw.githubusercontent.com/blinkreaction/boot2docker-vagrant/master/scripts/presetup-win.sh)

Setup and usage

Automatic installation

Designate a root folder that the VM will have access to (e.g. ~/Projects) and run there:

bash <(curl -s https://raw.githubusercontent.com/blinkreaction/boot2docker-vagrant/master/scripts/setup.sh)

Manual installation

Use these steps if you have VirtualBox and/or Vagrant already installed or prefer/need to install them manually.

  1. Copy Vagrantfile and vagrant.yml into a designated folder

  2. Inside the folder run

    vagrant up
    
  3. Verify your setup by checking docker client and server versions

    docker version
    

Documentation

License

The MIT License (MIT)

Copyright (c) 2015 BlinkReaction

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.