我在ubuntu 14.04上,我也将docker升级到最新版本。
每当我做sudo /etc/init.d/docker start
时,我得到一个成功的pid如下,
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.
我不确定出了什么问题。有没有人克服类似的问题?我甚至不确定何时应该检查更多日志。任何指示都会有所帮助。
由于
答案 0 :(得分:1)
您的安装可能已损坏。
这应该可以解决问题。
如果没有,请尝试再次卸载docker并尝试使用https://docs.docker.com/installation/binaries/中的二进制文件。