docker using proxy to build docker image

条件

需要一个外部能够访问的http proxy
polipo 或者 其他的软件设定localaddress 为0.0.0.0 即可

方法如下

docker build image with proxy

docker build --build-arg http_proxy=http://10.239.4.80:913 --build-arg https_proxy=http://10.239.4.80:913 .

你可能感兴趣的:(docker using proxy to build docker image)