Dockerd 代理
sh
sudo mkdir -p /etc/systemd/system/docker.service.d
sudo touch /etc/systemd/system/docker.service.d/proxy.conf
proxy.conf
conf
[Service]
Environment="HTTP_PROXY=proxy.example.com:8080/"
Environment="HTTPS_PROXY=proxy.example.com:8080/"
Environment="NO_PROXY=localhost,127.0.0.1,.example.com"
重启服务
sh
sudo systemctl daemon-reload
sudo systemctl restart docker
上面配置已经测试过,可以使用。