Docker 服务没有启动

Docker service does not start

docker 目前让我很为难。我遵循这些 instructions 以便在我的虚拟服务器 运行ning Ubuntu 14.04 上安装 docker 由 strato.de.

托管
wget -qO- https://get.docker.com/ | sh

执行这一行 运行让我直接进入此错误消息:

modprobe: ERROR: ../libkmod/libkmod.c:507 kmod_lookup_alias_from_builtin_file() could not open builtin file '/lib/modules/3.13.0-042stab092.3/modules.builtin.bin'modprobe: FATAL: Module aufs not found.
Warning: current kernel is not supported by the linux-image-extra-virtual
 package.  We have no AUFS support.  Consider installing the packages  linux-image-virtual kernel and linux-image-extra-virtual for AUFS support.

安装完成后,我安装了上面提到的两个包。现在我的问题是我无法从 docker 到 运行。

service docker start

结果:

start: Job failed to start


docker -d

结果

INFO[0000] +job serveapi(unix:///var/run/docker.sock)
INFO[0000] Listening for HTTP on unix (/var/run/docker.sock)
ERRO[0000] 'overlay' not found as a supported filesystem on this host. Please ensure kernel is new enough and has overlay support loaded.
INFO[0000] +job init_networkdriver()
WARN[0000] Running modprobe bridge nf_nat failed with message: , error: exit status 1
package not installed
INFO[0000] -job init_networkdriver() = ERR (1)
FATA[0000] Shutting down daemon due to errors: package not installed

docker run hello-world

结果

FATA[0000] Post http:///var/run/docker.sock/v1.18/containers/create: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?

有人知道可能缺少哪些依赖项吗?还有什么可能出错?有docker提供的日志吗?

我来回寻找解决方案,但找不到。

顺便提一下,这是一个全新的 Ubuntu 14.04 设置。除了 java,我没有安装任何其他服务。我之所以需要 docker 是为了使用 sharelatex 的 dockerimage。

感谢您的帮助!

You need to start docker

sudo start docker

然后

sudo docker run hello-world

我在 ubuntu 14.04 遇到了同样的问题,已解决。

参考 Nino-K 的评论 https://github.com/docker-library/hello-world/issues/3

以上是我tried/found整理出来的,希望能为您节省一些时间,甚至帮助您解决问题。

Docker 的 download script 正在尝试通过 uname -r 识别内核,以便能够为您的主机安装正确的内核附加功能。

我怀疑有两个问题:

  • 我的 (united-hoster.de) 和您的供应商可能为虚拟主机使用定制的内核映像(例如 3.13.0-042stab108.2)。由于脚本在名称中明确查找 -generic,因此查找失败。
  • 虽然命名问题很容易解决,但我无法使用托管商的自定义内核安装 generic 内核附加功能。似乎使用升级内核也不起作用,因为它会影响同一台物理机器上的所有 users/vHosts。这是因为内核是共享的(在一些支持票中有说明)。

为了解决这个问题..

  • 我跳过了它,希望 Docker 可以在没有 AUFS 支持的情况下工作,但它没有。
  • 我试图强制 Docker 改为 use devicemapper,但无济于事。

我看到两个选择:得到一个 专用 主机,这样你就可以搞乱内核和文件系统,或者至少让 docker 安装程序来做,或者 install the binaries manually.