Vagrant Can';“不要拿干净的流浪汉盒子”;删除“;或;“销毁”;

Vagrant Can';“不要拿干净的流浪汉盒子”;删除“;或;“销毁”;,vagrant,virtualbox,vagrant-windows,Vagrant,Virtualbox,Vagrant Windows,我正在Windows 10上使用Vagrant 1.8.1。当我试图移除或摧毁一个盒子时,我得到了这些相互矛盾的结果: baria@DESKTOP-057K4L5 /c/repos/hub/vtc/linphone-windows-dependencies $ vagrant box list hashicorp/precise64 (virtualbox, 1.1.0) windows_2012_r2_core (virtualbox, 0) baria@DESKTOP-057K4L5 /

我正在Windows 10上使用Vagrant 1.8.1。当我试图移除或摧毁一个盒子时,我得到了这些相互矛盾的结果:

baria@DESKTOP-057K4L5 /c/repos/hub/vtc/linphone-windows-dependencies
$ vagrant box list
hashicorp/precise64  (virtualbox, 1.1.0)
windows_2012_r2_core (virtualbox, 0)

baria@DESKTOP-057K4L5 /c/repos/hub/vtc/linphone-windows-dependencies
$ vagrant box remove windows_2012_r2_core
Box 'windows_2012_r2_core' (v0) with provider 'virtualbox' appears
to still be in use by at least one Vagrant environment. Removing
the box could corrupt the environment. We recommend destroying
these environments first:

vagrant-windows-2012-r2-core (ID: 00d3488f41fa40998bfe16ada2ebfd31)

Are you sure you want to remove this box? [y/N] N

baria@DESKTOP-057K4L5 /c/repos/hub/vtc/linphone-windows-dependencies
$ vagrant destroy windows_2012_r2_core
The machine with the name 'windows_2012_r2_core' was not found configured for
this Vagrant environment.
我在谷歌上搜索了关于什么是“流浪环境”的解释,但什么也没找到。所以我不知道如何“破坏环境”

即便如此,我还是希望
destroy
命令能够确认我的
windows\u 2012\u r2\u core
框的存在,因为
list
remove
命令能够确认它的存在


这是怎么回事?如何在没有警告或错误的情况下清除此框?

您应该从列表中删除无效条目

vagrant全局状态--删除


有关该命令的更多信息,请参阅。

您只需销毁引用的VM即可
vagrant Distroy 00d3488f41fa40998bfe16ada2ebfd31
将销毁使用此框的VM,然后您就可以删除该框


正如@Brandon Davis提到的,您可以运行
vagrant global status
查看创建的vagrant VM列表(来自vagrant 1.6+)并查看哪个VM是00d3488f41fa40998bfe16ada2ebfd31

不幸的是,这并没有改变我看到的行为。
vagrant global status
显示了什么?看起来有一个正在运行的环境正在运行此框。