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).
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
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)
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
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)
Use these steps if you have VirtualBox and/or Vagrant already installed or prefer/need to install them manually.
vagrant.ymlinto a designated folder
Inside the folder run
Verify your setup by checking docker client and server versions
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.