确定3-2写的dockerfile能运行么
为啥我跟着尝试了下,无法运行呢。我的环境是centos系统
FROM alpine:latest
MAINTAINER xxx
RUN yum install -y nginx
COPY index.html /var/www/html
ENTRYPOINT["/usr/sbin/nginx", "-g", "daemon off;"]
EXPOSE 80
为啥我跟着尝试了下,无法运行呢。我的环境是centos系统
FROM alpine:latest
MAINTAINER xxx
RUN yum install -y nginx
COPY index.html /var/www/html
ENTRYPOINT["/usr/sbin/nginx", "-g", "daemon off;"]
EXPOSE 80
2018-06-10
举报