2016-02-25 31 views
1

我使用的是流浪1.8.1在Windows 10,當試圖清除或破壞盒子,我得到了這些相互矛盾的結果:無法得到乾淨的流浪箱「刪除」或「消滅」

[email protected] /c/repos/hub/vtc/linphone-windows-dependencies 
$ vagrant box list 
hashicorp/precise64 (virtualbox, 1.1.0) 
windows_2012_r2_core (virtualbox, 0) 

[email protected] /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 

[email protected] /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_2012_r2_core箱的存在,鑑於listremove命令承認它的存在。

這是怎麼回事?我如何幹淨地擺脫這個盒子,沒有警告或錯誤?

回答

0

您應該從列表中刪除無效條目。

vagrant global-status --prune

,瞭解有關命令的詳細信息,請參閱here

+0

不幸的是,這並沒有改變我的行爲看到。 –

+0

'流浪的全球地位'顯示什麼?看起來有一個運行該框的環境正在運行。 –

0

您可以銷燬引用的虛擬機vagrant destroy 00d3488f41fa40998bfe16ada2ebfd31將銷燬正在使用此框的虛擬機,然後您將能夠刪除該虛擬機。

由於@Brandon戴維斯提到,您可以運行vagrant global-status看到創建無業遊民的列表VM(遊民1.6+),你看哪個VM是00d3488f41fa40998bfe16ada2ebfd31