【发布时间】:2023-03-09 05:34:01
【问题描述】:
docker 目前让我很难受。我遵循了这些instructions,以便在我的运行 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。
感谢您的帮助!
【问题讨论】:
-
安装包后是否重启了主机?
-
刚刚又做了一次 - 没有帮助。有人知道如何获得 docker 要求的“覆盖”文件系统吗?
-
你的内核版本是多少?
uname -a -
3.13.0-042stab092.3 我尝试升级到 3.18,但重启后仍然显示 3.13 。使用这种方法linuxandubuntu.com/home/…
-
你为什么不使用 apt-get?你应该运行
apt-get install linux-image-VERSION
标签: docker ubuntu-14.04