"proxies": {
   "default": {
     "httpProxy": "socks5://127.0.0.1:1080",
     "httpsProxy": "socks5://127.0.0.1:1080",
     "noProxy": "127.0.0.0/8"
   }
}
[Service]
Environment="HTTP_PROXY=socks5://127.0.0.1:1080"
Environment="HTTPS_PROXY=socks5://127.0.0.1:1080"

重启Docker服务

systemctl daemon-reload
systemctl restart docker

来源:https://t2.re/archives/1168/

❤️ 文章随意转载❤️