构建 docker 映像失败:根据用户命令退出
Build docker image fail : Exiting on user command
Dockerfile 如下:
FROM centos:latest
RUN yum install git \
nginx && \
pip install uwsgi \
The result of executing docker build command build
使用 yum install pakage 时,我们可能会这样选择 "Is this ok [y/d/N]",我可以在终端中轻松输入 "y"。但是,当我使用 Dockerfile 构建图像时,我如何 select 选择?
非常感谢!
只需在 yum 中添加 -y。
示例:
RUN yum -y install git ...
Dockerfile 如下:
FROM centos:latest
RUN yum install git \
nginx && \
pip install uwsgi \
The result of executing docker build command build
使用 yum install pakage 时,我们可能会这样选择 "Is this ok [y/d/N]",我可以在终端中轻松输入 "y"。但是,当我使用 Dockerfile 构建图像时,我如何 select 选择? 非常感谢!
只需在 yum 中添加 -y。
示例:
RUN yum -y install git ...