当前位置: 首页 > news >正文

Docker启动失败 Failed to start Docker Application Container Engine.

目录

【错误收集】

【问题分析】

【解决办法】

【运行结果】


【错误收集】

[root@localhost ~]# sudo journalctl -u docker.service --no-pager -n 100
-- Logs begin at 日 2025-09-07 15:25:32 CST, end at 日 2025-09-07 15:29:33 CST. --
9月 07 15:25:39 localhost.localdomain systemd[1]: Starting Docker Application Container Engine...
9月 07 15:25:39 localhost.localdomain dockerd[1265]: unable to configure the Docker daemon with file /etc/docker/daemon.json: invalid character 's' looking for beginning of value
9月 07 15:25:39 localhost.localdomain systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
9月 07 15:25:39 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
9月 07 15:25:39 localhost.localdomain systemd[1]: Unit docker.service entered failed state.
9月 07 15:25:39 localhost.localdomain systemd[1]: docker.service failed.
9月 07 15:25:41 localhost.localdomain systemd[1]: docker.service holdoff time over, scheduling restart.
9月 07 15:25:41 localhost.localdomain systemd[1]: Stopped Docker Application Container Engine.
9月 07 15:25:41 localhost.localdomain systemd[1]: Starting Docker Application Container Engine...
9月 07 15:25:41 localhost.localdomain dockerd[1837]: unable to configure the Docker daemon with file /etc/docker/daemon.json: invalid character 's' looking for beginning of value
9月 07 15:25:41 localhost.localdomain systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
9月 07 15:25:41 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
9月 07 15:25:41 localhost.localdomain systemd[1]: Unit docker.service entered failed state.
9月 07 15:25:41 localhost.localdomain systemd[1]: docker.service failed.
9月 07 15:25:43 localhost.localdomain systemd[1]: docker.service holdoff time over, scheduling restart.
9月 07 15:25:43 localhost.localdomain systemd[1]: Stopped Docker Application Container Engine.
9月 07 15:25:43 localhost.localdomain systemd[1]: Starting Docker Application Container Engine...
9月 07 15:25:43 localhost.localdomain dockerd[2084]: unable to configure the Docker daemon with file /etc/docker/daemon.json: invalid character 's' looking for beginning of value
9月 07 15:25:43 localhost.localdomain systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
9月 07 15:25:43 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
9月 07 15:25:43 localhost.localdomain systemd[1]: Unit docker.service entered failed state.
9月 07 15:25:43 localhost.localdomain systemd[1]: docker.service failed.
9月 07 15:25:45 localhost.localdomain systemd[1]: docker.service holdoff time over, scheduling restart.
9月 07 15:25:45 localhost.localdomain systemd[1]: Stopped Docker Application Container Engine.
9月 07 15:25:45 localhost.localdomain systemd[1]: start request repeated too quickly for docker.service
9月 07 15:25:45 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
9月 07 15:25:45 localhost.localdomain systemd[1]: Unit docker.service entered failed state.
9月 07 15:25:45 localhost.localdomain systemd[1]: docker.service failed.
9月 07 15:26:18 localhost.localdomain systemd[1]: start request repeated too quickly for docker.service
9月 07 15:26:18 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
9月 07 15:26:18 localhost.localdomain systemd[1]: docker.service failed.
9月 07 15:28:13 localhost.localdomain systemd[1]: Starting Docker Application Container Engine...
9月 07 15:28:13 localhost.localdomain dockerd[4990]: unable to configure the Docker daemon with file /etc/docker/daemon.json: invalid character 's' looking for beginning of value
9月 07 15:28:13 localhost.localdomain systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
9月 07 15:28:13 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
9月 07 15:28:13 localhost.localdomain systemd[1]: Unit docker.service entered failed state.
9月 07 15:28:13 localhost.localdomain systemd[1]: docker.service failed.
9月 07 15:28:16 localhost.localdomain systemd[1]: docker.service holdoff time over, scheduling restart.
9月 07 15:28:16 localhost.localdomain systemd[1]: Stopped Docker Application Container Engine.
9月 07 15:28:16 localhost.localdomain systemd[1]: Starting Docker Application Container Engine...
9月 07 15:28:16 localhost.localdomain dockerd[5053]: unable to configure the Docker daemon with file /etc/docker/daemon.json: invalid character 's' looking for beginning of value
9月 07 15:28:16 localhost.localdomain systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
9月 07 15:28:16 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
9月 07 15:28:16 localhost.localdomain systemd[1]: Unit docker.service entered failed state.
9月 07 15:28:16 localhost.localdomain systemd[1]: docker.service failed.
9月 07 15:28:18 localhost.localdomain systemd[1]: docker.service holdoff time over, scheduling restart.
9月 07 15:28:18 localhost.localdomain systemd[1]: Stopped Docker Application Container Engine.
9月 07 15:28:18 localhost.localdomain systemd[1]: Starting Docker Application Container Engine...
9月 07 15:28:18 localhost.localdomain dockerd[5112]: unable to configure the Docker daemon with file /etc/docker/daemon.json: invalid character 's' looking for beginning of value
9月 07 15:28:18 localhost.localdomain systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
9月 07 15:28:18 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
9月 07 15:28:18 localhost.localdomain systemd[1]: Unit docker.service entered failed state.
9月 07 15:28:18 localhost.localdomain systemd[1]: docker.service failed.
9月 07 15:28:20 localhost.localdomain systemd[1]: docker.service holdoff time over, scheduling restart.
9月 07 15:28:20 localhost.localdomain systemd[1]: Stopped Docker Application Container Engine.
9月 07 15:28:20 localhost.localdomain systemd[1]: start request repeated too quickly for docker.service
9月 07 15:28:20 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
9月 07 15:28:20 localhost.localdomain systemd[1]: Unit docker.service entered failed state.
9月 07 15:28:20 localhost.localdomain systemd[1]: docker.service failed.


 

【问题分析】

  1. 查看docker配置文件
    1. sudo cat /etc/docker/daemon.json
    2. 配置文件开头stry-mirrors 错误
      1. 少了 { 
      2. stry-mirrors 应该是 registry-mirrors

【解决办法】

  1. 删除docker配置文件
    1. sudo rm /etc/docker/daemon.json
  2. 启动docker
    1. sudo systemctl start docker
  3. 编辑配置文件
    1. sudo vi /etc/docker/daemon.json
    2. 配置一下内容
    3. {"registry-mirrors": ["https://mirror.ccs.tencentyun.com","http://hub-mirror.c.163.com",
      "https://e2zfh98i.mirror.aliyuncs.com","https://mirror.baidubce.com","https://docker.mirrors.ustc.edu.cn","https://docker-cf.registry.cyou","https://dockercf.jsdelivr.fyi","https://docker.jsdelivr.fyi","https://dockertest.jsdelivr.fyi","https://dockerproxy.com","https://docker.m.daocloud.io","https://docker.nju.edu.cn","https://docker.mirrors.sjtug.sjtu.edu.cn","https://mirror.iscas.ac.cn","https://docker.rainbond.cc","https://do.nark.eu.org","https://dc.j8.work","https://dockerproxy.com","https://gst6rzl9.mirror.aliyuncs.com","https://registry.docker-cn.com","http://hub-mirror.c.163.com","http://mirrors.ustc.edu.cn/","https://mirrors.tuna.tsinghua.edu.cn/","http://mirrors.sohu.com/"]
      }
      

  4. 刷新配置内容

    1.  sudo systemctl daemon-reload

【运行结果】

  1. 启动docker
  2. sudo systemctl restart docker
  3. 查看docker启动状态
    1. sudo systemctl status docker
  4. 尝试下载镜像
    1. docker pull tomcat
    2. 可以看到可以正常的下载


文章转载自:

http://dVDkmsA0.wdpww.cn
http://MpsabJ5G.wdpww.cn
http://xsEpmqbj.wdpww.cn
http://NyzN1saU.wdpww.cn
http://T1SRfmng.wdpww.cn
http://BnCNxD4E.wdpww.cn
http://7N9EPzhl.wdpww.cn
http://xHdYrkNP.wdpww.cn
http://mYrrnGNL.wdpww.cn
http://Uc18dI6X.wdpww.cn
http://2sGSDrKq.wdpww.cn
http://zca4Ibxd.wdpww.cn
http://M1mVEFdn.wdpww.cn
http://hULXWUDa.wdpww.cn
http://5ADqG0ru.wdpww.cn
http://faWoA861.wdpww.cn
http://dXRymHKr.wdpww.cn
http://7FMi3Cr6.wdpww.cn
http://Ije8T0IX.wdpww.cn
http://HFeIiFIb.wdpww.cn
http://5LbJlFBH.wdpww.cn
http://DKwUuWoD.wdpww.cn
http://XmmX59HC.wdpww.cn
http://7EWEe6ni.wdpww.cn
http://qT0Yf9uE.wdpww.cn
http://mvAAWDfb.wdpww.cn
http://U7CdDCB7.wdpww.cn
http://HL6ACC2m.wdpww.cn
http://dQDN2xdk.wdpww.cn
http://qOZFlP7S.wdpww.cn
http://www.dtcms.com/a/371421.html

相关文章:

  • scikit-learn/sklearn学习|广义线性回归损失函数的基本表达式
  • 2025年AI PPT必修课-汇报中AI相关内容的“陷阱”与“亮点”
  • RabbitMQ 教程
  • 【RabbitMQ】如何在 Ubuntu 安装 RabbitMQ
  • 硬件-电容学习DAY4——电容选型全攻略:从原理到实战
  • RabbitMQ--延时队列总结
  • 开放式LLM的崛起:未来已至
  • 驱动物流创新与协同,助力物流行业可持续发展的智慧物流开源了
  • GitHub 热榜项目 - 日榜(2025-09-07)
  • 定制开发开源AI智能名片S2B2C商城小程序的优势与局限性分析
  • 开源 C++ QT Widget 开发(十三)IPC通讯--本地套接字 (Local Socket)
  • win10(三)视频剪裁
  • ELK 平台入门与架构设计
  • 【音视频】Http-FLV 介绍
  • 从抽象到实现:Elasticsearch数据类型及其底层Lucene数据结构的深度解析
  • 互联网接入网中PPPoE和PPP协议
  • AI工具深度测评与选型指南 - 音视频生成与处理类
  • iceoryx高性能进程间通信中间件,在Windows环境的编译教程
  • Linux驱动开发(1)环境与代码框架
  • 造粒机cad+设计说明书
  • 游戏中的设计模式——第三篇 简单工厂模式
  • TCP, 三次握手, 四次挥手, 滑动窗口, 快速重传, 拥塞控制, 半连接队列, RST, SYN, ACK
  • Ansible 角色(Roles)
  • 深入理解 X25519 与 Ed25519:密钥交换与签名验签全流程解析
  • 【Python】数据可视化之热力图
  • 分布式专题——2 深入理解Redis线程模型
  • 【xss漏洞waf绕过】
  • Next.js中静态资源处理:图片、字体和其他文件
  • PyCharm 从入门到高效:安装教程 + 快捷键速查表
  • Linux 之从硬件硬盘到文件系统的全面过渡