Windows 容器的代理设置

时间:2021-05-28 14:58:23

标签: docker proxy

我必须如何设置我的代理设置才能在容器构建期间通过 Windows 容器中的 RUN 命令中的 powershell 发出 Web 请求?

我能够提取图像,但在 RUN 命令期间,我收到错误“使用“1”参数调用“DownloadString”的异常:“远程名称

无法解析:'community.chocolatey.org'" '

背景是我要安装chocolatey (https://chocolatey.org/install)。我使用的是公司代理,并且使用的是 VPN 连接 (cisco anyconnect)。

0 个答案:

没有答案
相关问题