containerd常用命令

背景

以前都是使用docker,现在使用的k3s的容器运行时是containerd,所以也熟悉下containerd的常用命令。

命令

查看镜像列表

crictl images list

查看运行的容器列表

crictl ps

查看所有容器资源情况

crictl stats

清理未被容器引用的镜像

crictl rmi --prune
posted @ 2023-09-06 09:27  仅此而已-远方  阅读(178)  评论(0编辑  收藏  举报