1、创建配置文件
mkdir -p /usr/lib/systemd/system/docker.service.d/
vim /usr/lib/systemd/system/docker.service.d/proxy.conf
[Service]
Environment="HTTP_PROXY=http://192.x.x.x:89"
Environment="HTTPS_PROXY=http://192.xx.x:89"
2、重启服务
systemctl daemon-reload && systemctl restart docker