Containerd-1.6.5 镜像容器操作( 三 )

ctr -n xyz c info nginx|less6 删除容器
[root@ecs-65685 ~]# ctr -n xyz c ls -qnginxnginx1[root@ecs-65685 ~]# ctr -n xyz container rm nginx1[root@ecs-65685 ~]# ctr -n xyz c ls -qnginx

Containerd-1.6.5 镜像容器操作

文章插图
除了使用 rm 子命令之外也可以使用 delete 或者 del 删除容器 。
三、报错ctr export导出或者import导入提示:ctr: content digest sha256:xxxxx: not found 。
[root@ecs-65685 ~]# ctr image export --all-platforms nginx.tar docker.io/library/nginx:alpinectr: content digest sha256:36f21d30317cff60a6ab8328cca93dbe554020ba0320c78e964040512d0f27a0: not found2 现象:
  • 直接导入某个镜像可能会出现类似于 ctr: content digest sha256:xxxxx: not found
解决办法:
  • 删除下载好的镜像
  • 拉取镜像、导出镜像时,都加上--all-platforms 时
  • 再次import和export,不需要添加--all-platforms

Containerd-1.6.5 镜像容器操作

文章插图
四、Containerd-1.6.5 命名空间和task使用https://www.cnblogs.com/huaxiayuyi/p/16790210.html
【Containerd-1.6.5 镜像容器操作】

经验总结扩展阅读