如何设置关键云代工厂(pcf)的代理?

时间:2017-12-15 17:37:48

标签: pivotal-cloud-foundry pcf

登录PCF时我面临以下错误,有人可以建议如何为PCF设置代理吗?

C:\Users\girdhars>cf login -a https://api.run.pivotal.io
API endpoint: https://api.run.pivotal.io
FAILED
Error performing request: Get https://api.run.pivotal.io/v2/info: dial tcp: lookup api.run.pivotal.io: no such host
TIP: If you are behind a firewall and require an HTTP proxy, verify the https_proxy environment variable is correctly set. Else, check your network connection.

enter image description here

1 个答案:

答案 0 :(得分:2)

要解决此问题,您必须在系统变量中设置 HTTP_PROXY

https://docs.pivotal.io/pivotalcf/1-12/cf-cli/http-proxy.html