迁移,移动.vagrant.d目录

来源:互联网 发布:java方法是什么意思 编辑:程序博客网 时间:2024/06/15 12:32
默认在
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
原创粉丝点击