编辑 /usr/lib/systemd/system/docker.service 文件
新增
Environment="HTTPS_PROXY=192.168.2.53:1080" "HTTP_PROXY=192.168.2.53:1080"
重新启动
systemctl daemon-reload && systemctl restart docker
检查
docker info | grep Proxy Https Proxy: 192.168.2.53:1080 HTTP_PROXY=192.168.2.53:1080