docker-engine runlevel:/ var / run / utmp:没有这样的文件或目录

时间:2016-11-08 11:36:59

标签: linux docker ubuntu-14.04 init

我正在尝试从可能修改了某些默认底层init系统或文件系统的服务提供商在Ubuntu 14.04的虚拟实例上安装Docker。

当尝试对最新的docker-engine进行apt-get安装时,我会在下面看到这些错误。有什么想法我可以试试吗?

My installation steps:

sudo apt-get install --yes apt-transport-https ca-certificates
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D

echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" | sudo tee /etc/apt/sources.list.d/docker.list

sudo apt-get update

apt-cache policy docker-engine

sudo apt-get install --yes linux-image-extra-$(uname -r) linux-image-extra-virtual

The one giving errors is this one:

125 dnanexus@job-F0QpJ700vBp11ffQk1b9ppYj:~⟫ sudo apt-get install --yes docker-engine                                                                                                                                                                                        
Reading package lists... Done
Building dependency tree       
Reading state information... Done
docker-engine is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up docker-engine (1.12.3-0~trusty) ...
runlevel:/var/run/utmp: No such file or directory
mount: block device cgroup is write-protected, mounting read-only
mount: cannot mount block device cgroup read-only
mount: block device cgroup is write-protected, mounting read-only
mount: cannot mount block device cgroup read-only
mount: block device cgroup is write-protected, mounting read-only
mount: cannot mount block device cgroup read-only
mount: block device cgroup is write-protected, mounting read-only
mount: cannot mount block device cgroup read-only
mount: block device cgroup is write-protected, mounting read-only
mount: cannot mount block device cgroup read-only
mount: block device cgroup is write-protected, mounting read-only
mount: cannot mount block device cgroup read-only
mount: block device cgroup is write-protected, mounting read-only
mount: cannot mount block device cgroup read-only
mount: block device cgroup is write-protected, mounting read-only
mount: cannot mount block device cgroup read-only
mount: block device cgroup is write-protected, mounting read-only
mount: cannot mount block device cgroup read-only
/etc/init.d/docker: 96: ulimit: error setting limit (Operation not permitted)
invoke-rc.d: initscript docker, action "start" failed.
dpkg: error processing package docker-engine (--configure):
 subprocess installed post-installation script returned error exit status 2
Setting up grub-pc (2.02~beta2-9ubuntu1.12) ...
grub-probe: error: failed to get canonical path of `/dev/mapper/md0-crypt2'.
grub-probe: error: failed to get canonical path of `/dev/mapper/md0-crypt2'.
grub-probe: error: failed to get canonical path of `/dev/mapper/md0-crypt2'.
/usr/sbin/grub-probe: error: failed to get canonical path of `/dev/mapper/md0-crypt2'.
dpkg: error processing package grub-pc (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up cgroup-lite (1.9) ...
invoke-rc.d: unknown initscript, /etc/init.d/cgroup-lite not found.
runlevel:/var/run/utmp: No such file or directory
dpkg: error processing package cgroup-lite (--configure):
 subprocess installed post-installation script returned error exit status 100
Errors were encountered while processing:
 docker-engine
 grub-pc
 cgroup-lite
E: Sub-process /usr/bin/dpkg returned an error code (1)

1 个答案:

答案 0 :(得分:0)

cgroup(控制组)是如何在linux系统上管理容器的固有部分,所以看起来你没有那里的权限。要么你没有root,要么他们被锁定了。