在 ubuntu 上升级 containerd 之后1.5.9-0ubuntu1~20.04.4
->1.5.9-0ubuntu1~20.04.5
我开始遇到奇怪的 containerd 任务:
# ctr --namespace k8s.io task ls|grep -i unkn
49f54c1c7bce53a7f73314a9f3c80eaf1534dcc6095ddce29d7f77ac86ac5e02 0 UNKNOWN
看到它处于未知状态。
# ctr --namespace k8s.io container ls |grep 49f54
49f54c1c7bce53a7f73314a9f3c80eaf1534dcc6095ddce29d7f77ac86ac5e02 k8s.gcr.io/pause:3.5
现在系统日志每分钟报告
containerd[659]: time="2022-11-16T01:11:31.116026891Z" level=error msg="get state for 49f54c1c7bce53a7f73314a9f3c80eaf1534dcc6095ddce29d7f77ac86ac5e02" error="context deadline exceeded: unknown"
它也不能被移除
# ctr --namespace k8s.io task rm 49f54c1c7bce53a7f73314a9f3c80eaf1534dcc6095ddce29d7f77ac86ac5e02
ERRO[0014] unable to delete 49f54c1c7bce53a7f73314a9f3c80eaf1534dcc6095ddce29d7f77ac86ac5e02 error="cannot delete a running process: unknown"
ctr: cannot delete a running process: unknown
所以我的问题是:ctr
从哪里获取任务列表?
答案1
好吧,我发现是
/var/lib/containerd/io.containerd.runtime.v2.task/k8s.io