迁移,移动.vagrant.d目录

默认在
C:\Users\***\.vagrant.d
然后下面有boxes目录

想迁移到其它目录
setx VAGRANT_HOME "/d/.vagrant.d/"

setx VAGRANT_HOME "D:/temp/.vagrant.d/"

打开环境变量对话框,发现已经加上了
NOTE: This adds to the User Environment, if you want to add to the system/machine you need to add the /M option at the end of the command, for example:
setx VAGRANT_HOME "X:/your/path" /M

参考:
https://harvsworld.com/2014/change-vagrant_home-directory-windows/
https://stackoverflow.com/questions/14733681/vagrant-d-outside-of-the-home-folder/14804694#14804694

你可能感兴趣的:(迁移,移动.vagrant.d目录)