微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

在docker ubuntu:12.04容器中通过apt-get安装cron失败

我试图通过apt-get install在我的Dockerfile中安装cron(以及其他软件包)。 我简化了我的Dockerfile到最低限度:

FROM ubuntu:12.04 RUN apt-get update RUN apt-get install -y cron

我在安装过程中看到的错误是:

Step 4 : RUN apt-get install -y cron ---> Running in 991339f4be58 Reading package lists... Building dependency tree... Reading state @R_944_4045@ion... Suggested packages: anacron logrotate checksecurity exim4 postfix mail-transport-agent The following NEW packages will be installed: cron 0 upgraded,1 newly installed,0 to remove and 12 not upgraded. Need to get 85.0 kB of archives. After this operation,308 kB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu/ precise-updates/main cron amd64 3.0pl1-120ubuntu4 [85.0 kB] debconf: delaying package configuration,since apt-utils is not installed Fetched 85.0 kB in 0s (204 kB/s) Selecting prevIoUsly unselected package cron. (Reading database ... 7551 files and directories currently installed.) Unpacking cron (from .../cron_3.0pl1-120ubuntu4_amd64.deb) ... Setting up cron (3.0pl1-120ubuntu4) ... Adding group `crontab' (GID 102) ... groupadd: failure while writing changes to /etc/group addgroup: `/usr/sbin/groupadd -g 102 crontab' returned error code 10. Exiting. dpkg: error processing cron (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: cron E: Sub-process /usr/bin/dpkg returned an error code (1) 2014/07/03 10:09:13 The command [/bin/sh -c apt-get install -y cron] returned a non-zero code: 100

在docker容器内手动运行$ groupadd / etc / group会导致同样的错误“groupadd:写入对/ etc / group的更改时失败”。

其他软件包如wget和curl安装正常。 是否有一个docker需要运行的进程才能执行groupadds? 还是在Dockerfile中有一个步骤需要首先发生,我错过了?

docker for windows相当于“-v /var/run/docker.sock:/var/run/docker.sock”

在Windows Server 2016中使用Hyper-V中的Docker和Compose

ClassNotFoundException:运行在jetty内部的org.eclipse.jetty.util.component.AbstractLifeCycle

Docker:如何pipe理开发和生产设置?

docker工人组成:重build一个链接的容器打破了Nginx的上游

提前致谢。

Nginx守护进程开/关选项有什么区别?

Nginx作为Nexus的反向代理服务器 – 无法在Docker环境中连接

Nginx proxy_pass到一个链接的docker容器

使用Docker Container从主机共享单个文件,并将Container r + w分配给相同的文件

Docker端口不能从主机访问

我不得不在运行docker的fedora机器上禁用SELinux。 做一个setenforce 0,编辑/ etc / selinux / conf以禁用,并重新启动我的机器固定它。 我没有意识到,我的码头容器将继承运行它的机器的权限问题。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐