删除流浪缓存中的虚拟机列表 [英] Removing list of vms in vagrant cache

查看:23
本文介绍了删除流浪缓存中的虚拟机列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不是在寻找 this 答案,因为我的问题是不同的.

I'm not looking for this answer, because my question is different.

当我输入 vagrant global-status 时,我得到了一个虚拟机列表,但其中一些目录和虚拟机已与 Vagrantfiles 一起被删除.

When I type vagrant global-status I get a list of vms, but some of those directories and VMs have been deleted along with the Vagrantfiles.

但是当我输入 vagrant destroy [machineid] 时,出现以下错误,我正在寻求解决.请指教.

The working directory for Vagrant doesn't exist! This is the
specified working directory:

/Users/steven/projects/php/vagrant-laravel

推荐答案

您应该使用以下命令从全局索引中删除无效条目:

You should use the following command to remove invalid entries from the global index:

vagrant global-status --prune

这篇关于删除流浪缓存中的虚拟机列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆