docker build使用HTTP代理 Work • Jul 18, 2023 在中国大陆网络,大部分情况无法正常获取国外资源,Dockerfile 如果遇到该情况,在构建时可以使用 --build-arg 参数添加本地的代理。 使用方式为: $ docker build --rm -t 172.16.105.142:5000/library/image:v3.0.1 --build-arg https_proxy=127.0.0.1:1081 . 标签 Work 订阅我们 每年的节日可能会收到惊喜。 你的 Email 地址 订阅 Now check your inbox and click the link to confirm your subscription. Please enter a valid email address Oops! There was an error sending the email, please try later. 向你推荐 Work 在CentOS 6.5通过编译方式安装python 2.7 2 months ago • 阅读预计需要1分钟 Work CentOS 6.5可使用的yum mirror代理源 2 months ago • 阅读预计需要1分钟 Work Spring Cloud Gateway使用Kubernetes Service服务发现和Kubernetes ConfigMap配置中心 4 months ago • 阅读预计需要3分钟