LoginSignup
1
1

More than 5 years have passed since last update.

vagrant の基本

Last updated at Posted at 2018-09-08

vagrantは、Macosや、windowsosのようなosを切り替える際に有効となる。

新たにcentosなどのOSもvagrant上で管理することができる。

vagrant コマンド

  • vagrant box list =>vagrant 上で管理しているboxを確認することができる。
  • vagrant box add [box名] =>新たにboxを追加する
  • vagrant init =>boxを初期化する。Vagrantfileを作る。新たにboxを作った際の初めにすべきこと。
  • vagrant up =>virtual machine を起動する。
  • vagrant ssh => 接続する。
  • vagrant status => vagrantが動いているかなどを確認できる。
  • vagrant halt => vagrant を停止する。

参考

1
1
0

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
1
1