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
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设置代理
本文链接:https://www.haomeiwen.com/subject/ipuzyxtx.html
网友评论