vim /usr/lib/systemd/system/docker.service
新加 Environment="HTTP_PROXY=http://ip:port"
systemctl daemon-reload && systemctl restart docker