概要
あまり利用していないので、/vagrantフォルダが自動でmountされるのを解除したくて調べた内容をメモしておく。
Vagrantfile
設定をOFFにする。
Vagrantfile
Vagrant.configure('2') do |config|
config.vm.synced_folder '.', '/vagrant', disabled: true
end
これだけだとちょっと少な過ぎるので、存在しないフォルダにNFSでマウントする方法も追記。
Vagrantfile
Vagrant.configure('2') do |config|
config.vm.synced_folder '.', '/vagrant', disabled: true
config.vm.synced_folder "./opt/", "/home/docker/opt/", :nfs => true
end