Managing boxes.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 04 Mar 2018 12:32:33 +0200
changeset 2237 1223e5073007
parent 2236 15e9cc9e054f
child 2238 a0d98c23cd6b
Managing boxes.
vagrant.rst
--- a/vagrant.rst	Sun Mar 04 12:16:23 2018 +0200
+++ b/vagrant.rst	Sun Mar 04 12:32:33 2018 +0200
@@ -14,6 +14,44 @@
 
 https://www.vagrantup.com/docs/other/environmental-variables.html
 
+Managing boxes
+==============
+
+Adding new box from catalog::
+
+  $ vagrant box add ubuntu/trusty64
+
+Checking for box updates::
+
+  $ cd $BOXDIR
+  $ vagrant box outdated
+
+Disable checking for update each time you call ``vagrant`` command::
+
+  Vagrant.configure("2") do |config|
+    config.vm.box_check_update = false
+  end
+
+Download box update::
+
+  $ vagrant box update
+
+.. note::
+   ``vagrant box update`` does not magicall updates your existing boxes. In just download
+   updated versions. To install new versio you need to destroy and install new boxes::
+
+     $ vagrant destroy
+     $ vagrant up
+
+To remove box at specific version::
+
+  $ vagrant box remove laravel/homestead --box-version 1.1.0
+
+https://www.vagrantup.com/docs/cli/box.html
+  Command: ``vagrant box``.
+https://www.vagrantup.com/docs/boxes/versioning.html
+  Box Versioning.
+
 Running individual provisioning scripts
 =======================================