docker build时如何使用代理?

1. docker build 时加上加上参数--build-arg https_proxy=http://user:password@proxy-server-ip:port (根据自身情况填充user, pasword, proxy-server-ip, port)

$ docker build --tag my-image . --build-arg https_proxy=http://user:password@proxy-server-ip:port

posted @ 2020-05-06 12:34  Jello  阅读(2230)  评论(0编辑  收藏  举报