vim /etc/systemd/system/containerd.service.d/http-proxy.conf
添加下面4行
[Service]
Environment="HTTP_PROXY=http://192.168.1.7:1080"
Environment="HTTPS_PROXY=http://192.168.1.7:1080"
Environment="NO_PROXY=localhost,10.200.0.0/16,10.233.0.0/16,192.168.0.0/16"
然后执行
systemctl daemon-reload
systemctl restart containerd
网友评论