我创建谷歌云虚拟机使用rhel7和安装docker后,尝试建立docker镜像使用dockerfile镜像,而不是构建docker。
FROM rhel
RUN yum update -y
yum install -y \
java-1.8.0-openjdk \
java-1.8.0-openjdk-devel
ENV JAVA_HOME /etc/alternatives/jre来自后台进程的错误响应:未知指令:。
发布于 2019-01-28 19:50:00
你可以使用,
FROM registry.access.redhat.com/rhel7/rhel
MAINTAINER John W. Jones <jjones@example.com>
# Add Web server, update image, and clear cache
RUN yum -y install httpd && yum -y update; yum clean all
# Add some data to web server
RUN echo "This Web server is working." > /var/www/html/index.html
EXPOSE 80
ENTRYPOINT [ "/usr/sbin/httpd" ]
CMD [ "-D", "FOREGROUND" ](ref.)
https://stackoverflow.com/questions/54400733
复制相似问题