containerd的用法

查看镜像:

ctr image ls

 

查看容器:

ctr container ls

 

查看任务:

ctr task ls

 

拉镜像:

ctr image pull [image]

 

创建容器:

ctr container create [image] [container] --mount type=bind,src=[str],dst=[dst],options=rbind:rw

 

创建任务:

ctr task start -d [container]

 

进入任务:

ctr task exec --exec-id 1 -t [task] /bin/bash

 

删除任务:

kill -9 [PID]

ctr task rm [tast]

 

删除容器:

ctr container rm [container]

 

删除镜像:

ctr image rm [image]

 

 

posted @   立冬以东  阅读(36)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· .NET Core 中如何实现缓存的预热?
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 如何调用 DeepSeek 的自然语言处理 API 接口并集成到在线客服系统
点击右上角即可分享
微信分享提示