Download vagrant box to different drive

匿名 (未验证) 提交于 2019-12-03 10:10:24

问题:

I chose the D:\ drive during installation but when I download a vagrant box it downloads to my user directory on C:\ drive. I am using a SSD with hardly any available space. How do I make it download boxes to another drive?

回答1:

You can use the VAGRANT_HOME environment variable to change the vagrant config / box download directory.

On Windows you should be able to use the setx command to change it, for example:

setx VAGRANT_HOME "D:/vagrant"

However, I found a similar stack overflow question where users are suggesting that the environment variable doesn't always work and that changing the @home_path found in vagrant\embedded\gems\gems\vagrant-1.x.x.dev\lib\vagrant\environment.rb worked for them.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!