这个问题似乎不是关于 a specific programming problem, a software algorithm, or software tools primarily used by programmers 的.如果您认为这个问题是关于 another Stack Exchange site 的主题,您可以发表评论,说明问题可能在哪里得到解答。
关闭 5 个月前。
我观察到一个问题,即 apt-get install 在容器中失败:
这可以通过创建一个简单的容器来重新创建,例如
docker run -it ubuntu:latest /bin/bash
在容器中,运行以下命令:
apt-get install software-properties-common
apt-get install software-properties-common
第二次,这将失败并显示“Killed”消息。如果您随后在语句前加上 sudo,它将成功完成:
sudo apt-get install software-properties-common
如果容器中的用户是 root,为什么需要 sudo 来重新安装现有包?我不认为这与 AUFS 文件系统有关,因为在前面添加 sudo 将完成。
这是使用 docker 1.10 和 Ubuntu 镜像。
相关文章:
amazon-web-services - 亚马逊云服务器 : How do I get aroun
php - Laravel Mime 类型验证(KML 文件)
git - 镜像/复制 Github Wiki 到 repo
react-native - 如何获得集成测试的 React Native 代码覆盖率?
git - 我如何摆脱我的 git repo 中的大包文件?
javascript - 如何自动将 CSS 应用于 console.log 着色
mongodb - 结合 mongo $push 和 $currentDate 以将时间包含在新的数