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

2,683次阅读
没有评论

共计 1708 个字符,预计需要花费 5 分钟才能阅读完成。

问题

宝塔内安装好 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 状态日志信息如下

宝塔内安装 Docker 管理器提示“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 管理器”
宝塔内安装 Docker 管理器提示“Docker 服务未启动”解决
  • ssh 登录,执行命令完整卸载 Docker
yum remove docker-*
  • 更换内核,使用下面的开源项目更换其他 BBRPlus 内核

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

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

正文完
 
Hlynford
版权声明:本站原创文章,由 Hlynford 2020-04-06发表,共计1708字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
评论(没有评论)