如何在 containerd/ctr

问题描述

使用 ctr 相当于 docker stop [containerID] 什么?我似乎无法通过 contianer 选项找到它,或者我缺少一些 ctr 概念...

解决方法

检查正在运行的任务:

 .under {
 position: absolute;
 left: 0px;
 top: 0px;
 z-index: -1;
 }

 .over {
 position: absolute;
 left: 40px;
 top: 10px;
 z-index: -1;
 }
 
 <img src="https://tafttest.com/184x46.png" width="184" height="46" class="under" />
 <img src="https://tafttest.com/100x84.png" width="100" height="84" class="over" />

然后你会看到类似的东西

任务 PID 状态

ctr task ls

v0      62166    RUNNING

ctr task kill v0