下令
| containerd
| Docker
|
crictl(保举)
| ctr
| docker
|
检察容器列表
| crictl ps
| ctr -n k8s.io c ls
| docker ps
|
检察容器详情
| crictl inspect <container>
| ctr -n k8s.io c info <container>
| docker inspect <container>
|
检察容器日记
| crictl logs <container>
| N/A
| docker logs <container>
|
容器内执行下令
| crictl exec <container>
| N/A
| docker exec <container>
|
挂载容器
| crictl attach <container>
| N/A
| docker attach <container>
|
显示容器资源利用情况
| crictl stats <container>
| N/A
| docker stats <container>
|
创建容器
| crictl create <container>
| ctr -n k8s.io c create <container>
| docker create <container>
|
启动容器
| crictl start <container>
| ctr -n k8s.io run <container>
| docker start <container>
|
停止容器
| crictl stop <container>
| N/A
| docker stop <container>
|
删除容器
| crictl rm <container>
| ctr -n k8s.io c del <container>
| docker rm <container>
|
检察镜像列表
| crictl images
| ctr -n k8s.io i ls <image>
| docker images
|
检察镜像详情
| crictl inspecti <image>
| N/A
| docker inspect <image>
|
拉取镜像
| crictl pull <image>
| ctr -n k8s.io i pull <image>
| docker pull <image>
|
推送镜像
| N/A
| ctr -n k8s.io i push <image>
| docker push <image>
|
删除镜像
| crictl rmi <image>
| ctr -n k8s.io i rm <image>
| docker rmi <image>
|
检察Pod列表
| crictl pods
| N/A
| N/A
|
检察Pod详情
| crictl inspectp <pod name>
| N/A
| N/A
|
启动Pod
| crictl runp <pod name>
| N/A
| N/A
|
停止Pod
| crictl stopp <pod name>
| N/A
| N/A
|