1 Star 0 Fork 29

柚子 / notebook

forked from JustryDeng / notebook 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
[03]crictl常用指令.md 1.23 KB
一键复制 编辑 原始数据 按行查看 历史
邓沙利文 提交于 2022-08-30 18:04 . k8s

crictl常用指令

[TOC]

常用指令

crictl是k8s用户操作运行时(containerd也是一种运行时)的客户端工具,拉取镜像等操作,底层都是调用crictl实现的

注:我们在使用k8s时,如果出现了一些镜像、运行时之类的问题,可以直接使用crictl先进行调试

指令 说明
crictl ps 查看运行的容器
crictl images 查看镜像
crictl logs {容器id} 查看容器日志
crictl inspect {容器id} crictl logs {容器id}
crictl stats {容器id} 查看容器资源
crictl start 启动已有的容器
crictl stop 关闭已有的容器
crictl create 创建一个新的容器
crictl rm 删除容器
crictl rmi 删除镜像
crictl exec 在容器内部执行命令
crictl pull {镜像} 拉取镜像
...... ......

相关资料

1
https://gitee.com/WY784755850/notebook.git
git@gitee.com:WY784755850/notebook.git
WY784755850
notebook
notebook
master

搜索帮助