How to use vagrant in a proxy environment?

前端 未结 12 907
太阳男子
太阳男子 2020-12-07 08:10

My company\'s network is using proxy. So when I use vagrant up, it showed me a 401 permission error.

How can I do some setting to use vagrant?

12条回答
  •  無奈伤痛
    2020-12-07 08:40

    Install proxyconf:

    vagrant plugin install vagrant-proxyconf
    

    Configure your Vagrantfile:

    config.proxy.http     = "http://yourproxy:8080"
    config.proxy.https    = "http://yourproxy:8080"
    config.proxy.no_proxy = "localhost,127.0.0.1"
    

提交回复
热议问题