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 Please enable JavaScript to view the comments powered by Disqus. 向你推荐 Work 编程字体推荐:Google Sans Code,谷歌设计美学与代码可读性 5 days ago • 阅读预计需要1分钟 Work 使用ESM(Elasticsearch Migration)简单且快速的迁移ElasticSearch数据 12 days ago • 阅读预计需要2分钟 Work 保持更新:中国大陆可用的公共免费Docker镜像加速器 19 days ago • 阅读预计需要2分钟