dougu1952 2015-01-10 02:34
浏览 447

Docker守护程序无法启动或重启

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条回答 默认 最新

  • drkwpgrdb092239314 2015-01-12 16:12
    关注

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

    评论

报告相同问题?

悬赏问题

  • ¥15 不同尺寸货物如何寻找合适的包装箱型谱
  • ¥15 求解 yolo算法问题
  • ¥15 虚拟机打包apk出现错误
  • ¥30 最小化遗憾贪心算法上界
  • ¥15 用visual studi code完成html页面
  • ¥15 聚类分析或者python进行数据分析
  • ¥15 三菱伺服电机按启动按钮有使能但不动作
  • ¥15 js,页面2返回页面1时定位进入的设备
  • ¥50 导入文件到网吧的电脑并且在重启之后不会被恢复
  • ¥15 (希望可以解决问题)ma和mb文件无法正常打开,打开后是空白,但是有正常内存占用,但可以在打开Maya应用程序后打开场景ma和mb格式。