新建 /etc/systemd/system/docker.service.d/http-proxy.conf 输入 [ol][Service] Environment="HTTP_PROXY=http://127.0.0.1:1080/" Environment="HTTPS_PROXY=http://127.0.0.1:1080/" Environment="NO_PROXY=localhost,127.0.0.1" [/ol]复制代码 127.0.0.1自己改成代理地址 最后输入 systemctl daemon-reload && systemctl restart docker