crictl 拉取镜像时,报类似下面的错误:
# crictl pull ubuntu
FATA[0000] validate service connection: CRI v1 image API is not implemented for endpoint "unix:///run/containerd/containerd.sock": rpc error: code = Unimplemented desc = unknown service runtime.v1.ImageService
将 containerd 升级到 1.6 或更高版本:
# 查看版本,输出类似 containerd github.com/containerd/containerd 1.5.2-0ubuntu1~20.10.2
containerd --version
# 按需设置代理
wget https://github.com/containerd/containerd/releases/download/v1.6.12/containerd-1.6.12-linux-amd64.tar.gz && tar xvf containerd-1.6.12-linux-amd64.tar.gz && systemctl stop containerd && cd bin/ && cp * /usr/bin/ && systemctl start containerd
# 测试
crictl pull ubuntu