[英]Running docker -d fails on Ubuntu 14.04
I am working on a fresh VM delivered by Host Europe that matches the description on https://docs.docker.com/installation/ubuntulinux/#ubuntu-trusty-1404-lts-64-bit (so Ubuntu Trusty 14.04 (LTS) (64-bit), 3.13.0 Linux kernel). 我正在开发由Host Europe提供的新VM,它与https://docs.docker.com/installation/ubuntulinux/#ubuntu-trusty-1404-lts-64-bit上的描述相符(所以Ubuntu Trusty 14.04(LTS) (64位),3.13.0 Linux内核)。 After installing the docker.io package
docker ps
fails with "Cannot connect to the Docker daemon. Is 'docker -d' running on this host?" 安装docker.io软件包之后,docker
docker ps
失败并显示“无法连接到Docker守护程序。在此主机上运行了'docker -d'吗?” When running docker -d
I get: 当运行
docker -d
我得到:
INFO[0000] +job serveapi(unix:///var/run/docker.sock)
INFO[0000] +job init_networkdriver()
inappropriate ioctl for device
INFO[0000] -job init_networkdriver() = ERR (1)
FATA[0000] inappropriate ioctl for device
Apparently this error happens as well when the docker service tries to start via upstart . 显然,当docker服务尝试通过upstart启动时,也会发生此错误 。 I also tried it with the latest docker package according to "Docker-maintained Package Installation" in the above-mentioned description.
我还根据上述说明中的“Docker维护的包安装”,使用最新的docker包尝试了它。
Here is the more detailed ouptput using docker -D -d
: 以下是使用docker
docker -D -d
的更详细的输出:
INFO[0000] +job serveapi(unix:///var/run/docker.sock)
DEBU[0000] libdevmapper(3): ioctl/libdm-iface.c:363 (-1) /dev/mapper/control: open failed: Operation not permitted
DEBU[0000] libdevmapper(3): ioctl/libdm-iface.c:415 (-1) Failure to communicate with kernel device-mapper driver.
DEBU[0000] libdevmapper(3): ioctl/libdm-iface.c:417 (-1) Check that device-mapper is available in the kernel.
DEBU[0000] Using graph driver vfs
DEBU[0000] Creating images graph
DEBU[0000] Restored 0 elements
DEBU[0000] Creating repository list
INFO[0000] +job init_networkdriver()
DEBU[0000] Creating bridge docker0 with network 172.17.42.1/16
DEBU[0000] setting bridge mac address = true
inappropriate ioctl for device
INFO[0000] -job init_networkdriver() = ERR (1)
FATA[0000] inappropriate ioctl for device
Ideas anybody? 任何人的想法? Thanks in advance.
提前致谢。 (Seems like a "deadend" to me after lots of successfull "dockerizing" on local VMs.)
(在本地VM上进行了许多成功的“dockerizing”之后,对我来说似乎是一个“deadend”。)
Most probably your hoster doesn't provide cgroups. 很可能你的主机不提供cgroups。 That happens sometimes depending on the kind virtualization they use.
有时这取决于他们使用的虚拟化类型。 I have the same problem with www.stratro.de
我对www.stratro.de也有同样的问题
Thats when cat /proc/cgroups
returns an empty table. 那是
cat /proc/cgroups
返回一个空表。
You can see more here: https://mannlinstones.wordpress.com/2014/08/12/docker-v-server-strato-final-results/ 你可以在这里看到更多: https : //mannlinstones.wordpress.com/2014/08/12/docker-v-server-strato-final-results/
Did you checked the runtime dependencies from Docker -> Check runtime dependencies ? 您是否从Docker检查了运行时依赖项 - > 检查运行时依赖项 ? It is defentliy a problem with your filesystem maybe it is related to this problem.
你的文件系统问题可能与这个问题有关。
From Docker: 来自Docker:
a properly mounted cgroupfs hierarchy (having a single, all-encompassing "cgroup" mount point is not sufficient)
正确安装的cgroupfs层次结构(具有单个,无所不包的“cgroup”挂载点是不够的)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.