Appendix C. Vagrant

At various points in this book we use virtual machines to demonstrate a technique for Docker that requires a full machine representation, or even multi-virtual-machine orchestration.

Vagrant offers a simple way to start, provision, and manage virtual machines from the command line, and it’s available on multiple platforms.

C.1. Setting up

Go to https://www.vagrantup.com and follow the instructions there to get set up.

C.2. GUIs

When running vagrant up to start up a virtual machine, Vagrant reads the local file called Vagrantfile to determine the settings.

A useful setting that you can create or change within the section for your provider is the gui one:

v.gui = true

For example, if your provider is VirtualBox, a typical ...

Get Docker in Practice now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.