LoginSignup
5

More than 5 years have passed since last update.

vagrantの共有フォルダ設定

Last updated at Posted at 2017-03-03

vagrantの共有フォルダ設定

ただのメモ。
vagrantで共有フォルダが設定されていなかったので設定した。

以下のようにVagrantfileを設定すると、Vagrantfileがあるフォルダと、
仮想マシン上の/vagrant が共有フォルダになる。

  # Share an additional folder to the guest VM. The first argument is
  # the path on the host to the actual folder. The second argument is
  # the path on the guest to mount the folder. And the optional third
  # argument is a set of non-required options.

Vagrantfileに書いてある説明の通りやっただけ。

$ vi Vagrantfile
Vagrantfile
~
  config.vm.synced_folder "./", "/vagrant"
~

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5