首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >docker-engine运行级别:/var/run/utmp:没有这样的文件或目录

docker-engine运行级别:/var/run/utmp:没有这样的文件或目录
EN

Stack Overflow用户
提问于 2016-11-08 19:36:59
回答 1查看 989关注 0票数 0

我正试图在Ubuntu 14.04的一个虚拟实例上安装Docker,该实例来自一个服务提供商,该服务提供商可能已经修改了一些默认的底层init系统或文件系统。

当尝试执行apt-get安装最新的docker-engine时,我得到以下错误。有什么办法可以让我试试吗?

代码语言:javascript
复制
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)
EN

回答 1

Stack Overflow用户

发布于 2016-11-08 20:56:45

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/40485930

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档