mkdir -p /etc/systemd/system/docker.service.d/
vi /etc/systemd/system/docker.service.d/http-proxy.conf
[Service]
Environment="HTTP_PROXY=http://192.168.4.53:7890"
Environment="HTTPS_PROXY=http://192.168.4.53:7890"
Environment="NO_PROXY=localhost,127.0.0.1,192.168.4.0/24"
# 检查是否使用了代理
systemctl show --property=Environment docker