做Nginx镜像 mkdir nginx cd nginx/ vim Dockerfile docker build -t nginx:1.1 ./ docker run --name nginx -d -p 81:80 nginx:1.1 测试Nginx服务页面 做APACHE镜像 mkdir httpd cd httpd/ vim Dockerfile FROM centos RUN yum -y install httpd EXPOSE 80 CMD [httpd,-DFOREGROUND] docker build -t httpd:1.1 ./ doc