ctr -n xyz c info nginx|less
6 删除容器
[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
文章插图
除了使用 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 found
2 现象:- 直接导入某个镜像可能会出现类似于 ctr: content digest sha256:xxxxx: not found
- 删除下载好的镜像
- 拉取镜像、导出镜像时,都加上--all-platforms 时
- 再次import和export,不需要添加
--all-platforms
文章插图
四、Containerd-1.6.5 命名空间和task使用https://www.cnblogs.com/huaxiayuyi/p/16790210.html
【Containerd-1.6.5 镜像容器操作】
经验总结扩展阅读
- 洗手凝胶可以带上飞机吗
- KVM导入Ubuntu Cloud 镜像创建虚机及调整磁盘大小
- CentOS 7.9 安装 Containerd-1.6.5
- Docker | 使用dockerfile生成镜像,清理docker空间
- Docker | Compose创建mysql容器
- Java Style的C++容器流式处理类
- 关于电容器的高中相关知识
- Docker | 容器数据卷详解
- 做葡萄酒的容器
- Spring 深入——IoC 容器 01