MENU

docker构造镜像使用代理

March 1, 2023 • Read: 357 • 教程·折腾

参考 https://dev.to/zyfa/setup-the-proxy-for-dockerfile-building--4jc8

docker build -t foo:0.1 \
    --build-arg http_proxy=http://192.168.0.1:1080 \
    --build-arg https_proxy=http://192.168.0.1:1080 \
    .

本文由 ONE 创作,采用 知识共享署名4.0 国际许可协议进行许可
本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名
如有版权疑问交流,请给我留言:oneisall8955@gmail.com
本文永久链接:https://liuzhicong.cn/index.php/guide/docker-build-image-use-http-proxy.html

Archives QR Code Tip
QR Code for this page
Tipping QR Code