导入导出镜像

containerd有namespace的概念,所以需要指定

1
2
3
4
5
# 导出镜像
ctr -n k8s.io image export k8s.gcr.io/coredns/coredns:v1.8.0 coredns_v1.8.0.tar

# 导入镜像
ctr -n=k8s.io image import coredns_v1.8.0.tar