From 5fc11140516ece866e2045b5cddc1a86f84a3e54 Mon Sep 17 00:00:00 2001 From: Adam Spiers Date: Sun, 4 May 2014 14:46:43 +0100 Subject: [PATCH] explicitly explain how to disable the default share This caused a great deal of confusion e.g. as seen in https://github.com/mitchellh/vagrant/issues/1004 --- website/docs/source/v2/synced-folders/basic_usage.html.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/website/docs/source/v2/synced-folders/basic_usage.html.md b/website/docs/source/v2/synced-folders/basic_usage.html.md index c5ea57a6b..5a1f7dcd5 100644 --- a/website/docs/source/v2/synced-folders/basic_usage.html.md +++ b/website/docs/source/v2/synced-folders/basic_usage.html.md @@ -75,6 +75,12 @@ Vagrant.configure("2") do |config| end ``` +Disabling the default `/vagrant` share can be done as follows: + +```ruby +config.vm.synced_folder ".", "/vagrant", disabled: true +``` + ## Modifying the Owner/Group By default, Vagrant mounts the synced folders with the owner/group set