给docker设置代理

vim /etc/systemd/system/docker.service.d/http-proxy.conf

[Service]Environment="HTTP_PROXY=http://proxy.yourname.com:3128/" "HTTPS_PROXY=http://proxy.yourname.com:3128/"

systemctl daemon-reload

systemctl restart docker

你可能感兴趣的:(给docker设置代理)