vagrant - 更新 Vagrant 后运行命令“vagrant up”时出现错误?
问题描述
在使用命令vagrant up
工作虚拟机时更新 vagrant 后,我收到此错误:
The VirtualBox VM was created with a user that doesn't match the
current user running Vagrant. VirtualBox requires that the same user
be used to manage the VM that was created. Please re-run Vagrant with
that user. This is not a Vagrant issue.
The UID used to create the VM was: 0
Your UID is: 1001
解决方案
我更新项目creator_uid
文件.vagrant/
夹中的文件
打开文件应该在这个路径:
.vagrant/machines/web/virtualbox/creator_uid
0
并将此文件中的或任何值更改为1001
因为在错误消息中告诉我Your UID is: 1001
之后它的
vagrant up
工作:)
推荐阅读
- sql - 将字符串中的值剥离为行格式?
- python - python中print("",end="")是什么意思
- microsoft-graph-api - microsoft graph 为其他用户安装应用程序返回“代码”:“冲突”
- swiftui - 无法推断复杂的闭包返回类型;在处理简单的布尔状态时添加显式类型以消除歧义
- php - WP_List_Table 不显示任何条目
- firebase - getDownloadURL - 'Future 类型的值
'不能分配给'String'类型的变量 - node.js - Expo 在使用 npm 安装期间卡住,但使用 yarn 安装并且无法正常工作
- vowpalwabbit - Vowpal Wabbit:对 Contextual Bandits 的动作集大小有限制?
- r - 旋转 ggplot 地图,使北向左而不是向上
- ios - Grand Central Dispatch:当队列超载时会发生什么?