主要是两个配置文件:
(docker网络代理)
cat /etc/systemd/system/docker.service.d/http-proxy.conf
[Service]
Environment="HTTP_PROXY=http:///"
"HTTPS_PROXY=http://"
"NO_PROXY=localhost,127.0.0.1,"
(私有仓库的位置)
cat /etc/docker/daemon.json
{
"insecure-registries":[""],
"exec-opts": ["native.cgroupdriver=systemd"]
}
systemctl daemon-reload
systemctl restart docker