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. ![](https://i-blog.csdnimg.cn/direct/672816ef034e4c62849b56896263d881.png)

  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. 配置一下内容
    javascript 复制代码
    {
      "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. 可以看到可以正常的下载
相关推荐
Lin_Aries_042115 分钟前
通过配置 GitLab 自动触发项目自动化构建与部署
运维·docker·容器·自动化·云计算·gitlab
尘埃不入你眼眸26 分钟前
Docker操作命令
运维·docker·容器
龙茶清欢27 分钟前
1、Lombok入门与环境配置:理解Lombok作用、配置IDE与构建工具
java·spring boot·spring cloud
龙茶清欢44 分钟前
2、Nginx 与 Spring Cloud Gateway 详细对比:定位、场景与分工
java·运维·spring boot·nginx·spring cloud·gateway
龙茶清欢3 小时前
1、User-Service 服务设计规范文档
java·spring boot·spring cloud·设计规范
龙茶清欢4 小时前
4、urbane-commerce 认证请求 DTO 设计规范
java·spring boot·spring cloud·设计规范
数智顾问4 小时前
开源的容器化平台:Docker入门与核心概念解析
docker
一只学java的小汉堡5 小时前
微服务与面向服务编程(SOA)入门指南:从架构演进到 Spring Cloud 实践(初学者友好版)
spring boot·spring cloud·java-ee·maven
云游6 小时前
Zabbix7.4.8(三):通过Zabbix agent 2监控Docker相关指标
docker·容器·zabbix
Lin_Aries_04216 小时前
使用 Jenkins 的流水线项目实施 CI/CD
运维·ci/cd·docker·容器·云计算·jenkins