Sign inSign up

iamviki/httpd

By iamviki

•Updated over 8 years ago

Docker image to spin up Apache/2.4.29

Image
0

1.1K

iamviki/httpd repository overview

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://

Tag summary

Content type

Image

Digest

Size

126.7 MB

Last updated

over 8 years ago

docker pull iamviki/httpd