英文:
Docker daemon does not start or restart
问题
我在Ubuntu 14.04上,并且我也升级了最新版本的Docker。
每当我执行sudo /etc/init.d/docker start
命令时,我会得到一个成功的进程ID,如下所示:
docker start/running, process 16267
当我查看PID的详细信息时,我什么都看不到:
ps -p 16267
PID TTY TIME CMD
当我尝试执行sudo docker version
命令时,我看到以下内容:
Client API version: 1.16
Go version (client): go1.2.1
OS/Arch (client): linux/amd64
2015/01/10 10:30:49 Cannot connect to the Docker daemon. Is 'docker -d' running on this host?
执行sudo docker -d
命令的输出如下:
[2015-01-12T21:05:59.889680188+08:00] [info] docker daemon: ; execdriver: native; graphdriver:
[2015-01-12T21:05:59.889800519+08:00] [83736c52] +job serveapi(unix:///var/run/docker.sock)
[2015-01-12T21:05:59.895688816+08:00] [info] Listening for HTTP on unix (/var/run/docker.sock)
[2015-01-12T21:05:59.904409095+08:00] [83736c52] +job init_networkdriver()
[2015-01-12T21:05:59.932947471+08:00] [83736c52] -job init_networkdriver() = OK (0)
[2015-01-12T21:05:59.933137366+08:00] [fatal] log.go:64 Could not locate dockerinit: This usually means docker was built incorrectly. See http://docs.docker.com/contributing/devenvironment for official build instructions.
我不确定出了什么问题。是否有人解决过类似的问题?我甚至不确定应该在什么时候检查更多的日志。对此的任何指导都将是有帮助的。
谢谢。
英文:
I am on ubuntu 14.04 and I also upgrade docker to recent version.
Whenever I do a sudo /etc/init.d/docker start
I get a successful pid as follows,
docker start/running, process 16267
When I view the PID details, I see nothing -
ps -p 16267
PID TTY TIME CMD
And when I try to do a sudo docker version
I see the below -
Client API version: 1.16
Go version (client): go1.2.1
OS/Arch (client): linux/amd64
2015/01/10 10:30:49 Cannot connect to the Docker daemon. Is 'docker -d' running on this host?
The output of sudo docker -d
is as follows,
[2015-01-12T21:05:59.889680188+08:00] [info] docker daemon: ; execdriver: native; graphdriver:
[2015-01-12T21:05:59.889800519+08:00] [83736c52] +job serveapi(unix:///var/run/docker.sock)
[2015-01-12T21:05:59.895688816+08:00] [info] Listening for HTTP on unix (/var/run/docker.sock)
[2015-01-12T21:05:59.904409095+08:00] [83736c52] +job init_networkdriver()
[2015-01-12T21:05:59.932947471+08:00] [83736c52] -job init_networkdriver() = OK (0)
[2015-01-12T21:05:59.933137366+08:00] [fatal] log.go:64 Could not locate dockerinit: This usually means docker was built incorrectly. See http://docs.docker.com/contributing/devenvironment for official build instructions.
I am not sure what is going wrong. Has anyone overcome similar issues? I am not even sure when I should check for more logs on this. Any directions on this will be helpful.
Thanks
答案1
得分: 1
你可能安装的 Docker 出现了损坏。
- 卸载 Docker
- 确保你没有 dockerinit 文件(使用 updatedb / locate dockerinit 命令来查找) -> 删除它
- 重新安装 Docker
这样应该可以解决问题。
如果还不行,尝试再次卸载 Docker,并从 https://docs.docker.com/installation/binaries/ 下载二进制文件进行安装。
英文:
You probably have a corrupted install.
- Uninstall docker
- Make sure you don't have a dockerinit (updatedb / locate dockerinit) -> delete it
- Reinstall docker
This should do the trick.
If not, try uninstalling docker again and try with binaries from https://docs.docker.com/installation/binaries/.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论