Failed to start Docker Application Container Engine 解决方案

错误信息

  • 执行命令:systemctl start docker

  • 错误信息:

    systemctl start docker
    ==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
    Authentication is required to start 'docker.service'.
    Authenticating as: nju (user)
    Password: 
    ==== AUTHENTICATION COMPLETE ===
    Job for docker.service failed because the control process exited with error code.
    See "systemctl status docker.service" and "journalctl -xe" for details.
    
  • 执行命令systemctl status docker.service

  • 错误信息

    ● docker.service - Docker Application Container Engine
       Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
       Active: activating (auto-restart) (Result: exit-code) since Sun 2021-01-17 22:10:03 CST; 1s ago
         Docs: https://docs.docker.com
      Process: 31636 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
     Main PID: 31636 (code=exited, status=1/FAILURE)
    (base) user@kubernetes-master:~/XU/software/Docker$ systemctl status docker.service\
    > 
    ● docker.service - Docker Application Container Engine
       Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
       Active: failed (Result: exit-code) since Sun 2021-01-17 22:10:06 CST; 24s ago
         Docs: https://docs.docker.com
      Process: 31636 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
     Main PID: 31636 (code=exited, status=1/FAILURE)
    
    1月 17 22:10:06 kubernetes-master systemd[1]: docker.service: Service hold-off time over, scheduling restart.
    1月 17 22:10:06 kubernetes-master systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.
    1月 17 22:10:06 kubernetes-master systemd[1]: Stopped Docker Application Container Engine.
    1月 17 22:10:06 kubernetes-master systemd[1]: docker.service: Start request repeated too quickly.
    1月 17 22:10:06 kubernetes-master systemd[1]: docker.service: Failed with result 'exit-code'.
    1月 17 22:10:06 kubernetes-master systemd[1]: Failed to start Docker Application Container Engine.
    

解决方案

  • sudo rm -rf /etc/docker/daemon.json
    systemctl start docker
  • PS:注意做好备份!!!
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值