Vagrant 仮想マシンを一覧で取得する

Vagrantで、仮想マシンを一覧で取得する手順を記述してます。「 global-status 」で取得できます。ここでは実際に実行した結果を掲載してます。
環境
- OS windows11 pro
- Vagrant 2.3.1
仮想マシンを一覧で取得
仮想マシンを一覧で取得するには、「 global-status 」コマンドを使用します。
> vagrant global-status
id name provider state directory
------------------------------------------------------------------------
3403bf1 default virtualbox running C:/centos9
07ab5bc default virtualbox running C:/rocky9
73ff251 default virtualbox running C:/ubuntu
The above shows information about all known Vagrant environments
on this machine. This data is cached and may not be completely
up-to-date (use "vagrant global-status --prune" to prune invalid
entries). To interact with any of the machines, you can go to that
directory and run Vagrant, or you can use the ID directly with
Vagrant commands from any directory. For example:
"vagrant destroy 1a2b3c4d"
-
前の記事
sqlite viewを削除する 2023.02.22
-
次の記事
java sin値を取得する 2023.02.23
コメントを書く