Docker daemon does not start or restart

馋奶兔 提交于 2019-12-12 09:58:37

问题


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:


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/.



来源:https://stackoverflow.com/questions/27872283/docker-daemon-does-not-start-or-restart

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!