美文网首页
containerd添加代理

containerd添加代理

作者: 博楠同学 | 来源:发表于2023-07-14 18:38 被阅读0次

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

相关文章

网友评论

      本文标题:containerd添加代理

      本文链接:https://www.haomeiwen.com/subject/zqxbudtx.html