failed to get sandbox image \\\“registry.k8s.io/pause:3.6\\\“: failed to pull image \\\“registry.k8

文章指导如何在containerd配置中将Kubernetes的pause镜像更改为阿里云的版本,包括修改配置文件、重启containerd服务的步骤。

如果直接改/etc/containerd/config.toml可能不成功,因为这个文件不完整,启动的时候还是不会使用这个文件

要先containerd config default > /etc/containerd/config.toml

然后在这个文件里面,找到sandbox_image = "registry.k8s.io/pause:3.6"
改为sandbox_image = "registry.aliyuncs.com/google_containers/pause:3.9"

然后systemctl restart containerd

Warning FailedCreatePodSandBox 6m39s kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to get sandbox image "registry.k8s.io/pause:3.8": failed to pull image "registry.k8s.io/pause:3.8": failed to pull and unpack image "registry.k8s.io/pause:3.8": failed to resolve reference "registry.k8s.io/pause:3.8": failed to do request: Head "https://registry.k8s.io/v2/pause/manifests/3.8": dial tcp: lookup registry.k8s.io on 127.0.0.53:53: read udp 127.0.0.1:63115->127.0.0.53:53: i/o timeout Warning FailedCreatePodSandBox 6m16s kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to get sandbox image "registry.k8s.io/pause:3.8": failed to pull image "registry.k8s.io/pause:3.8": failed to pull and unpack image "registry.k8s.io/pause:3.8": failed to resolve reference "registry.k8s.io/pause:3.8": failed to do request: Head "https://registry.k8s.io/v2/pause/manifests/3.8": dial tcp: lookup registry.k8s.io on 127.0.0.53:53: read udp 127.0.0.1:8743->127.0.0.53:53: i/o timeout Warning FailedCreatePodSandBox 25s (x17 over 5m54s) kubelet (combined from similar events): Failed to create pod sandbox: rpc error: code = Unknown desc = failed to get sandbox image "registry.k8s.io/pause:3.8": failed to pull image "registry.k8s.io/pause:3.8": failed to pull and unpack image "registry.k8s.io/pause:3.8": failed to resolve reference "registry.k8s.io/pause:3.8": failed to do request: Head "https://registry.k8s.io/v2/pause/manifests/3.8": dial tcp: lookup registry.k8s.io on 127.0.0.53:53: read udp 127.0.0.1:28899->127.0.0.53:53: 缺少一个镜像,我想用ctr -n k8s.io images tag harbocto.boe.com.cn/kubernetes/pause:3.8 registry.k8s.io/pause:3.8 ,但是为什么还是报错
最新发布
10-25
评论 4
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值