0
点赞
收藏
分享

微信扫一扫

docker save -o保存镜像

最近一次实验中,使用daemonset控制器创建pod后一直是ImagePullBackOff

docker save -o保存镜像_ImagePullBackOff

查看镜像存在

docker save -o保存镜像_load_02

describe查看pod的详细信息

docker save -o保存镜像_ImagePullBackOff_03

这是因为用containerd做容器运行时,得ctr -n=k8s.io images 解压镜像,才能被pod找到

以下是解决方法:

1.保存镜像:

docker save -o fluentd1 xianchao/fluentd:v2.5.1

docker save -o保存镜像_docker_04

2.导入镜像、查看镜像

 ctr -n=k8s.io images import fluentd1

ctr -n=k8s.io images list|grep fluentd

docker save -o保存镜像_load_05

3.此时pod就是running状态了

docker save -o保存镜像_ImagePullBackOff_06

举报

相关推荐

0 条评论