使用 containerd 时k8s.io 镜像无法拉取的处理办法 (tag)

发布于:
服务器技术
ctr image pull registry.aliyuncs.com/google_containers/coredns:1.8.0
ctr image tag registry.aliyuncs.com/google_containers/coredns:1.8.0 k8s.gcr.io/coredns/coredns:v1.8.0
ctr image rm registry.aliyuncs.com/google_containers/coredns:1.8.0
ctr image export ~/coredns.tar k8s.gcr.io/coredns/coredns:v1.8.0
ctr image rm k8s.gcr.io/coredns/coredns:v1.8.0
ctr -n k8s.io image import ~/coredns.tar

感觉有点繁琐,不知有没有更简洁的方法,今天第一次用,能用就行,记录一下。