简体   繁体   English

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

[英]docker-engine runlevel:/var/run/utmp: No such file or directory

I am trying to install Docker on a virtual instance of Ubuntu 14.04 from a service provider that may have modified some of the default underlying init system or filesystem. 我正在尝试通过服务提供商在Ubuntu 14.04的虚拟实例上安装Docker,该服务提供商可能已经修改了一些默认的基础初始化系统或文件系统。

When trying to do an apt-get install of the latest docker-engine, I get these errors below. 当尝试执行最新的docker-engine的apt-get安装时,我在下面出现这些错误。 Any ideas what I could try? 有什么想法我可以尝试吗?

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)

The cgroup (control groups) are an intrinsic part of how containers are managed on linux system, so it's seems you don't have permission there. cgroup(控制组)是linux系统上容器管理方式的一个内在部分,因此似乎您在这里没有权限。 Either you don't have root, or they've been locked down somehow. 您可能没有根目录,或者它们已被某种方式锁定。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 `getlogin()`是通过从`/ var / run / utmp`读取来实现的吗? - Is `getlogin()` implemented by reading from `/var/run/utmp`? 如何在/ var / run / utmp中写入一项? - how to write one entry in /var/run/utmp? Docker - 无法找到 package docker-engine - Docker - Unable to locate package docker-engine 无法打开 /proc/net/unix: No such file or directory // invoke-rc.d: 无法确定当前运行级别 - Cannot open /proc/net/unix: No such file or directory // invoke-rc.d: could not determine current runlevel 如何在/var/run 目录下创建目录? - How to create a directory under /var/run directory? 在docker容器中运行的bash文件中没有这样的文件或目录sed命令 - No such file or directory sed command in a bash file run inside a docker container docker for windows 等效于“-v /var/run/docker.sock:/var/run/docker.sock” - docker for windows equivalent for “-v /var/run/docker.sock:/var/run/docker.sock” Docker 逐渐填满 /var 目录 - Docker gradually filling up /var directory NGINX: connect() to unix:/var/run/php7.0-fpm.sock failed (2: No such file or directory) - NGINX: connect() to unix:/var/run/php7.0-fpm.sock failed (2: No such file or directory) 执行屏幕命令,返回“无法使目录'/ var / run / screen':文件存在” - Execute screen command returning `Cannot make directory '/var/run/screen': File exists`
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM