LoginSignup
0
1

More than 5 years have passed since last update.

Vagrant - コマンド

Posted at

よく使うコマンド一覧

# 作成&起動
$ vagrant up

# provision
$ vagrant provision

# ssh接続
$ vagrant ssh

# 確認
$ vagrant status

# 確認(全ての仮想マシン)
$ vagrant global-status

# 確認(削除済の仮想マシンを除く)
$ vagrant global-status --prune

# 一時停止
$ vagrant suspend

# `suspend`から復帰
$ vagrant resume

# 停止
$ vagrant halt

# 更新(`vagrant halt`と`vagrant up`を実行)
$ vagrant reload

# 更新(provisionも実行)
$ vagrant reload --provision

# 削除(仮想環境を削除する)
# マシン名(or マシンID)をつけない場合はカレントディレクトリのマシンを削除
$ vagrant destroy マシン名(or マシンID)

ref: Command-Line Interface - Vagrant by HashiCorp

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