一开始发现 Docker 容器无法启动,后面发现 Docker 容器无法创建。然后想着重启看看,结果输入 sudo reboot 后,报错:
Failed to set wall message, ignoring: Launch helper exited with unknown return code 1
Call to Reboot failed: Launch helper exited with unknown return code 1
Docker 错误也是类似:
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: unable to apply cgroup configuration: unable to start unit "docker-***.scope" (properties [{Name:Description Value:"libcontainer container ***"} {Name:Slice Value:"system.slice"} {Name:Delegate Value:true} {Name:PIDs Value:@au [3423]} {Name:MemoryAccounting Value:true} {Name:CPUAccounting Value:true} {Name:IOAccounting Value:true} {Name:TasksAccounting Value:true} {Name:DefaultDependencies Value:false}]): Launch helper exited with unknown return code 1: unknown
Error: failed to start containers: portainer
在 Google 上搜不到类似情况
有 v 友遇到类似的问题吗?该如何解决?
补充系统信息:
_,met$$$$$gg. root@***
,g$$$$$$$$$$$$$$$P. OS: Debian 12 bookworm
,g$$P"" """Y$$.". Kernel: x86_64 Linux 6.1.0-13-amd64
,$$P' `$$$. Uptime: 10m
',$$P ,ggs. `$$b: Packages: 526
`d$$' ,$P"' . $$$ Shell: ***
$$P d$' , $$P Disk: 210G / 1.1T (21%)
$$: $$. - ,d$$' CPU: Intel Celeron J1900 @ 4x 2.4157GHz
$$\; Y$b._ _,d$P' RAM: 1153MiB / 7834MiB
Y$$. `.`"Y$$$$P"'
`$$b "-.__
`Y$$
`Y$$.
`$$b.
`Y$$b.
`"Y$b._
`""""
1
julyclyde 362 天前
你这个 dbus 故障是宿主机的吧?
reboot 命令和 systemd 之间的通信是通过 dbus 传递的 dockerd 、containerd 是经过 systemd socket activation 启动的,当 dbus 有问题的时候,systemd 不能正常工作,所以也就无法启动这俩 daemon 了 你可以看看/usr/lib/systemd/system/ 目录下边 dbus 相关的 service 文件,试试手工执行那个 daemon 服务,并在此时从另一个终端输入上述几个命令试试,如果可以的话,建议重启整机,如果不行,你就慢慢修 dbus 吧,此时千万别重启 |