将Windows docker客户端与代理一起使用 [英] Use Windows docker client with proxy
问题描述
我已经设置了一个带有Windows Server 2016 TP3的虚拟机,我试图用docker使用
<下载microsoft / iis映像
I have set up a VM with Windows Server 2016 TP3, I am trying to pull down the microsoft/iis image with docker using
" docker pull microsoft / iis"
"docker pull microsoft/iis"
在工作时,我在公司防火墙后面,需要通过http代理。当我尝试上面的命令时,我得到
When at work I am behind a corporate firewall and need to go through a http proxy. When I try the above command I get
"来自守护程序的错误响应:获取https://registry-win-tp3.docker.io/v2/:net/http:请求已取消在等待连接"
"Error response from daemon: Get https://registry-win-tp3.docker.io/v2/: net/http: request canceled while waiting for connection"
我尝试设置HTTP_PROXY和HTTPS_PROXY环境变量但这不起作用。
I have tried setting HTTP_PROXY and HTTPS_PROXY environment variables but this does not work.
如何使用带有http的docker代理?
How do I use docker with an http proxy?
顺便说一下,当我在家工作而不是在公司防火墙后面时,我已设法将此图像拉下来。
BTW I have manage to pull down this image fine when I am working from home and not behind the corporate firewall.
谢谢,  ;
Thanks,
推荐答案
您好,
我看到同样的错误。您有没有想过如何配置这个?
I am seeing the same error. Did you ever have any luck figuring out how to configure this?
谢谢,
Jonathan
这篇关于将Windows docker客户端与代理一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!