CentOS7配置Docker网络代理
创建目录: mkdir /etc/systemd/system/docker.service.d
创建配置文件: touch /etc/systemd/system/docker.service.d/http-proxy.conf
编辑配置文件:
[Service] Environment=http_proxy=http://ip:port
更新重新加载配置:
systemctl daemon-reload
systemctl restart docker