Vagrant - Box (base image)

1 - About

Vagrant uses a base image known as Box to quickly clone a virtual machine.

Each project uses a box as an initial image to clone from, and never modifies the actual base image.

3 - Property

3.1 - Qualified Name

the username and the box name - separated by a slash.


userName/boxName

Example:


hashicorp/precise64

where:

  • “hashicorp” is the userName
  • and the box is “precise64

3.2 - Storage

The box are stored in under

VAGRANT_HOME\boxes

4 - Command

4.1 - add

4.1.1 - command line

You can also add boxes from a local file, custom URL, etc.


vagrant box add userName/BoxName

Example


vagrant box add hashicorp/precise64

hashicorp/precise64 from HashiCorp's Atlas box catalog

4.1.2 - Vagrantfile

Then in Vagrant - Vagrantfile


Vagrant.configure("2") do |config|
  config.vm.box = "hashicorp/precise64"
end

4.2 - Remove

To physically remove the box file, you can use the vagrant box remove command


vagrant box remove

4.3 - List


vagrant box list

5 - Box Directory


Data Science
Data Analysis
Statistics
Data Science
Linear Algebra Mathematics
Trigonometry

Powered by ComboStrap