在Windows7机器上,我无法在我们的公司代理后面进行流浪添加(或流浪添加)。我尝试过使用和不使用http_proxy/https_proxy环境变量。我试着使用vagrant插件vagrant-proxyconf和不同的http代理设置,但没有帮助,问题不是在客户的代理上,而是在主机的代理上。有什么方法可以让vagrant自己使用代理吗?
流浪者up的输出:
C:\scratch\vagrant>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'hashicorp/pricise32' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
The box 'hashicorp/pricise32' could not be found or
could not be accessed in the remote catalog. If this is a private
box on Vagrant Cloud, please verify you're logged in via
`vagrant login`. Also, please double-check the name. The expanded
URL and error message are shown below:
URL: ["https://vagrantcloud.com/hashicorp/pricise32"]
Error: The requested URL returned error: 404 Not Found插件:
C:\scratch>vagrant plugin list
vagrant-login (1.0.1, system)
vagrant-proxyconf (1.2.0)
vagrant-share (1.0.1, system)流浪版:
C:\scratch\vagrant>vagrant -v
Vagrant 1.5.4发布于 2014-04-30 14:40:28
正如@Emyl指出的,您在框名称中有一个拼写错误(应该是“hashicorp/recise32”)。
作为对这个问题的回答,Vagrant支持主机上的标准HTTP_PROXY和HTTPS_PROXY环境变量。在Windows上,您可以在命令行中使用以下命令设置它们:
set HTTP_PROXY="http://proxy:1234"
set HTTPS_PROXY="http://proxy:1234"这也是planned,在未来的流浪代理也可以在某些情况下自动设置它们。
发布于 2016-01-29 22:04:44
对我有效,但没有双引号。
set HTTP_PROXY=http://proxy:1234
set HTTPS_PROXY=http://proxy:1234而不是:
set HTTP_PROXY="http://proxy:1234"
set HTTPS_PROXY="http://proxy:1234"https://stackoverflow.com/questions/23365906
复制相似问题