Docker file:- #cat Dockerfile
FROM centos MAINTAINER iamviki
RUN yum install -y httpd
RUN echo "The Web Server is Running" > /var/www/html/index.html
CMD ["-D", "FOREGROUND"] ENTRYPOINT ["/usr/sbin/httpd"]
EXPOSE 80 443
#Building image with Dockerfile
docker build -t httpd .
#Running an image will create a container.
docker run -d httpd
#Accessing httpd
wget http://
Content type
Image
Digest
Size
126.7 MB
Last updated
over 8 years ago
docker pull iamviki/httpd