系统冻结后,Docker将无法启动
在过去的一半时间里,我一直试图解决这个问题,现在我面对的是砖墙,首先,发生了什么:我像往常一样使用我的机器,它突然冻结,我不得不用硬盘重新启动笔记本电脑一个电源button,当我有一个我的docker集装箱。
重新启动后,我无法再升起我的docker作曲者容器了,使用sudo docker-compose up -d
这就是我得到的
ERROR: Couldn't connect to Docker daemon at http+docker://localunixsocket - is it running? If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.
我search谷歌和尝试不同的提供的方法,包括:
- 重新安装Docker X次
- 将用户添加到组
- 尝试与sudo和没有它的dockercomposer php
- 停止并启动docker服务
- 与docker相关的systemctl命令
- 我发现了一堆其他解决scheme
如果我尝试运行例如docker info
我得到以下内容:
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
这发生在与docker相关的所有命令上。 这是我得到的,如果我运行service docker status
:
Active: inactive (dead) Failed to start Docker Application Container Engine. docker.service: Unit entered failed state. docker.service: Failed with result 'exit-code'. docker.service: Service hold-off time over, scheduling restart. Stopped Docker Application Container Engine. docker.service: Start request repeated too quickly. Failed to start Docker Application Container Engine.
我最好的猜测是,一旦我的系统暂停,我重新启动它,而不停止docker,它仍然运行在幕后的某个地方,我必须find一种方法来杀死它? 虽然后来我不确定我是否已经删除了docker并重新安装了它,难道这不是解决了“后台程序中的神秘”问题么?
在这一点上,我只想着使用我的Ubuntu 16.04的旧映像,我甚至不知道会不会工作,但是现在我已经没有想法了,如果有人能够帮助我,我会非常感激。 如果您需要任何其他信息,请让我知道,我将编辑这篇文章。
编辑:从/var/log/upstart/docker.log信息
Waiting for /var/run/docker.sock /var/run/docker.sock is up time="2017-07-13T16:01:14.278980783+03:00" level=info msg="libcontainerd: new containerd process, pid: 2315" time="2017-07-13T16:01:15.947896762+03:00" level=info msg="Graph migration to content-addressability took 0.00 seconds" time="2017-07-13T16:01:15.948172349+03:00" level=warning msg="Your kernel does not support swap memory limit" time="2017-07-13T16:01:15.948222431+03:00" level=warning msg="Your kernel does not support cgroup rt period" time="2017-07-13T16:01:15.948234045+03:00" level=warning msg="Your kernel does not support cgroup rt runtime" time="2017-07-13T16:01:15.948561160+03:00" level=info msg="Loading containers: start." time="2017-07-13T16:01:16.879689640+03:00" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can be used to set a preferred IP address" time="2017-07-13T16:01:17.277750516+03:00" level=info msg="Loading containers: done." time="2017-07-13T16:01:17.920812553+03:00" level=info msg="Daemon has completed initialization" time="2017-07-13T16:01:17.920861773+03:00" level=info msg="Docker daemon" commit=02c1d87 graphdriver=aufs version=17.06.0-ce time="2017-07-13T16:01:17.927527669+03:00" level=info msg="API listen on /var/run/docker.sock" time="2017-07-13T16:42:40.869391999+03:00" level=info msg="Processing signal 'terminated'" INFO[2485] stopping containerd after receiving terminated
在Ubuntu 16.04中使用Systemd的Upstart日志很奇怪…你运行的是Docker的老版本。 该软件包不再被命名为docker-engine 。 现在是docker工人 。 版本库URL已更改。
请参阅: https : //docs.docker.com/engine/installation/linux/docker-ce/ubuntu/#install-using-the-repository
- Docker群pipe理器无法识别群集节点
- kubelet失败,kubelet cgroup驱动程序:“cgroupfs”与docker cgroup驱动程序不同:“systemd”
- Gitlab泊坞窗registry不响应远程泊坞窗拉失败
- 无法访问docker中创build的docker-compose容器
- dockerbuild造后。 容器不显示,为什么?
- 运行基于SpringBoot的Docker镜像返回错误信息:无效或损坏的jarfile /app.jar
- docker工人:从图像中提取一个图层
- 在docker run命令中传递多个env文件
- 有没有任何可能的方式来创build一个没有docker安装在我的开发机器上的docker图像?