containerd: failed to load TOML: /etc/containerd/config.toml: (126, 13): The following key was defined twice: plugins.io.containerd.grpc.v1.cri.containerd.runtimes.runc.options.SystemdCgroup

释放双眼,带上耳机,听听看~!

报错日志如下

root@VM-16-2-ubuntu:~# journalctl -fu containerd
-- Logs begin at Sun 2022-07-17 16:19:23 CST. --
Jul 17 17:11:32 VM-16-2-ubuntu systemd[1]: containerd.service: Main process exited, code=exited, status=1/FAILURE
Jul 17 17:11:32 VM-16-2-ubuntu systemd[1]: containerd.service: Failed with result 'exit-code'.
Jul 17 17:11:32 VM-16-2-ubuntu systemd[1]: Failed to start containerd container runtime.
Jul 17 17:11:37 VM-16-2-ubuntu systemd[1]: containerd.service: Scheduled restart job, restart counter is at 3.
Jul 17 17:11:37 VM-16-2-ubuntu systemd[1]: Stopped containerd container runtime.
Jul 17 17:11:37 VM-16-2-ubuntu systemd[1]: Starting containerd container runtime...
Jul 17 17:11:37 VM-16-2-ubuntu containerd[20231]: containerd: failed to load TOML: /etc/containerd/config.toml: (126, 13): The following key was defined twice: plugins.io.containerd.grpc.v1.cri.containerd.runtimes.runc.options.SystemdCgroup
Jul 17 17:11:37 VM-16-2-ubuntu systemd[1]: containerd.service: Main process exited, code=exited, status=1/FAILURE
Jul 17 17:11:37 VM-16-2-ubuntu systemd[1]: containerd.service: Failed with result 'exit-code'.
Jul 17 17:11:37 VM-16-2-ubuntu systemd[1]: Failed to start containerd container runtime.

当我们启动containerd的时候日志提示我们SystemdCgroup貌似有错误

解决方法

检查/etc/containerd/config.toml 配置文件,SystemdCgroup = true是否有多写

给TA买糖
共{{data.count}}人
人已赞赏
报错锦集

Centos7 Cannot umount /oldroot

2022-7-16 16:24:42

报错锦集

Error: failed to run Kubelet: failed to create kubelet: get remote runtime typed version failed: rpc error: code = Unimplemented desc = unknown service runtime.v1alpha2.RuntimeService

2022-7-19 10:57:37

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索