宝塔内安装Docker管理器提示“Docker服务未启动”解决

问题

宝塔内安装好Docker管理器后,Docker未启动

执行启动Docker命令报错如下

# systemctl start docker

Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.

查询Docker状态日志信息如下

# systemctl status docker.service
● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)
   Active: failed (Result: start-limit) since Mon 2020-04-06 21:28:23 CST; 37s ago
     Docs: https://docs.docker.com
  Process: 4497 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
 Main PID: 4497 (code=exited, status=1/FAILURE)

Apr 06 21:28:21 warm-gigs-4.localdomain systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
Apr 06 21:28:21 warm-gigs-4.localdomain systemd[1]: Failed to start Docker Application Container Engine.
Apr 06 21:28:21 warm-gigs-4.localdomain systemd[1]: Unit docker.service entered failed state.
Apr 06 21:28:21 warm-gigs-4.localdomain systemd[1]: docker.service failed.
Apr 06 21:28:23 warm-gigs-4.localdomain systemd[1]: docker.service holdoff time over, scheduling restart.
Apr 06 21:28:23 warm-gigs-4.localdomain systemd[1]: Stopped Docker Application Container Engine.
Apr 06 21:28:23 warm-gigs-4.localdomain systemd[1]: start request repeated too quickly for docker.service
Apr 06 21:28:23 warm-gigs-4.localdomain systemd[1]: Failed to start Docker Application Container Engine.
Apr 06 21:28:23 warm-gigs-4.localdomain systemd[1]: Unit docker.service entered failed state.
Apr 06 21:28:23 warm-gigs-4.localdomain systemd[1]: docker.service failed.

解决

  • 宝塔论坛以及搜索引擎上的解决方案都无效,最后发现是装了最新BBRPLUS内核导致的问题
  • 在宝塔面板内先卸载“Docker管理器”
  • ssh登录,执行命令完整卸载Docker
yum remove docker-*
  • 更换内核,使用下面的开源项目更换其他BBRPlus内核

https://github.com/ylx2016/Linux-NetSpeed/releases

  • 重新前往宝塔的软件商店安装Docker管理器

版权声明:
作者:Hlynford
链接:https://hlynford.com/997.html
来源:Hlynford'Blog
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>