Home Archives Categories Tags

Error starting daemon layer does not exist

发布时间: 更新时间: 总字数:223 阅读时间:1m 作者: 分享

Docker 报错:Error starting daemon: layer does not exist 问题。

错误日志

#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: exit-code) since Fri 2017-06-02 13:58:41 CST; 4s ago
     Docs: https://docs.docker.com
  Process: 4960 ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock --bip=10.12.96.1/20 --mtu=1472 --insecure-registry=reg.docker.tude.com --registry-mirror=https://njo3o4it.mirror.aliyuncs.com --storage-driver=overlay (code=exited, status=1/FAILURE)
 Main PID: 4960 (code=exited, status=1/FAILURE)
Jun 02 13:58:40 dev-nd1.internal.tude.com systemd[1]: Starting Docker Application Container Engine...
Jun 02 13:58:40 dev-nd1.internal.tude.com dockerd[4960]: time="2017-06-02T13:58:40.154266145+08:00" level=warning msg="[!] DON'T BIND ON ANY IP ADDRESS WITHOUT setting -tlsverify IF YOU DON'T KNOW WHAT YOU'RE DOING [!]"
Jun 02 13:58:40 dev-nd1.internal.tude.com dockerd[4960]: time="2017-06-02T13:58:40.155616074+08:00" level=info msg="libcontainerd: new containerd process, pid: 4967"
Jun 02 13:58:41 dev-nd1.internal.tude.com dockerd[4960]: time="2017-06-02T13:58:41.291046676+08:00" level=fatal msg="Error starting daemon: layer does not exist"
Jun 02 13:58:41 dev-nd1.internal.tude.com systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
Jun 02 13:58:41 dev-nd1.internal.tude.com systemd[1]: Failed to start Docker Application Container Engine.
Jun 02 13:58:41 dev-nd1.internal.tude.com systemd[1]: Unit docker.service entered failed state.
Jun 02 13:58:41 dev-nd1.internal.tude.com systemd[1]: docker.service failed.

原因 & 解决

镜像存储文件损坏,sudo rm -rf /var/lib/docker,重启docker后恢复正常。

参考

最新评论
加载中...