containerd常用命令

仅此而已-远方 / 2023-09-06 / 原文

背景

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

命令

查看镜像列表

crictl images list

查看运行的容器列表

crictl ps

查看所有容器资源情况

crictl stats

清理未被容器引用的镜像

crictl rmi --prune