Yum install 不能在 boot2docker 主机上运行?
Yum install won't work on a boot2docker host?
我对 Docker 比较陌生。
我已经使用 docker-machine create -d.
启动了一个 boot2docker 主机
设法连接到它,运行 几个命令。一切顺利。
但是,当尝试创建一个基于 centos 的基本 http 服务器映像时..
"yum install" 完全失败了。不管是什么包裹。
这是我的 Docker 文件:
FROM centos
MAINTAINER Amir
#Install Apache
RUN yum install httpd
运行宁时:
docker 构建 .
它正在开始构建图像,一切看起来都不错..但是失败了:
Your transaction was saved, rerun it with:
yum load-transaction /tmp/yum_save_tx.2015-09-18.15-10.q5ss8m.yumtx
SECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added to build context will have '-rwxr-xr-x' permissions. It is recommended to double check and reset permissions for sensitive files and directories.
The command '/bin/sh -c yum install httpd' returned a non-zero code: 1
知道我做错了什么吗?
提前致谢。
如果你看的比上一条消息早一点,你很有可能看到这样的东西:
Total download size: 24 M
Installed size: 32 M
Is this ok [y/d/N]: Exiting on user command
Your transaction was saved, rerun it with:
这意味着您必须更改默认选择,例如
#Install Apache
RUN yum install -y httpd
我对 Docker 比较陌生。 我已经使用 docker-machine create -d.
启动了一个 boot2docker 主机设法连接到它,运行 几个命令。一切顺利。
但是,当尝试创建一个基于 centos 的基本 http 服务器映像时.. "yum install" 完全失败了。不管是什么包裹。
这是我的 Docker 文件:
FROM centos
MAINTAINER Amir
#Install Apache
RUN yum install httpd
运行宁时: docker 构建 .
它正在开始构建图像,一切看起来都不错..但是失败了:
Your transaction was saved, rerun it with: yum load-transaction /tmp/yum_save_tx.2015-09-18.15-10.q5ss8m.yumtx SECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added to build context will have '-rwxr-xr-x' permissions. It is recommended to double check and reset permissions for sensitive files and directories. The command '/bin/sh -c yum install httpd' returned a non-zero code: 1
知道我做错了什么吗?
提前致谢。
如果你看的比上一条消息早一点,你很有可能看到这样的东西:
Total download size: 24 M
Installed size: 32 M
Is this ok [y/d/N]: Exiting on user command
Your transaction was saved, rerun it with:
这意味着您必须更改默认选择,例如
#Install Apache
RUN yum install -y httpd