【发布时间】:2018-01-30 03:31:30
【问题描述】:
我想创建一个如下所示的 Dockefile
FROM <rhel6/7>
# add our user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added
RUN addgroup redis && useradd -g redis -ms /bin/bash redi
RUN mkdir /data && chown redis:redis /data
VOLUME /data
WORKDIR /data
# Copy the current directory contents into the container at /app
ADD . /data
# Run app.py when the container launches
CMD ["/usr/software/rats/bedrock/bin/python2.7", "/data/test_redis.py"]
我用什么替换FROM <rhel6/7>?
【问题讨论】:
-
“它不起作用” --- 真的不是问题描述。
-
@zerkms 挑剔这个问题是没有建设性的
-
“它不起作用”是没有建设性的。祝你好运。
-
@zerkms 你在哪里看到“它不起作用”在编辑中
-
@zerkms 如果不打算实际回答问题,请不要添加 cmets。您最初的评论甚至没有要求澄清(它只是淡化了 Q)。我想我们会同意你的时间花在其他地方比这个 Q 更有价值
标签: docker dockerfile rhel