add box的时候默认保存在 C:\Users\xxx\.vagrant.d
VAGRANT_HOME can be set to change the directory where Vagrant stores global state. By default, this is set to ~/.vagrant.d. The Vagrant home directory is where things such as boxes are stored, so it can actually become quite large on disk.
通过设置VAGRANT_HOME环境变量改变默认位置
setx VAGRANT_HOME "X:/your/path"
setx VAGRANT_HOME "X:/your/path" /M (系统变量)
本文介绍如何通过设置VAGRANT_HOME环境变量来更改Vagrant默认的箱存储路径。默认情况下,Vagrant会将箱保存在C:Users用户名.vagrant.d目录下,但可以通过环境变量设置将其更改为其他路径。
1525

被折叠的 条评论
为什么被折叠?



