Docker Apache ImageΒΆ

The Docker Apache image in this tutorial gforghetti/apache:latest was built from the Docker Hub public repository httpd:2.4 image.

The following Dockerfile was used to create the image:

FROM httpd:2.4
COPY ./index.html /usr/local/apache2/htdocs/index.html

The custom index.html file contained this html:

<!DOCTYPE html>
<html>
<head>
<title>ACME</title>
</head>
<body style='background-color:gainsboro;'>
<h1><div style="text-align:center;">Welcome to ACME Anvil Corporation!</div></h1>
<div style="text-align:center;"><img style="box-shadow: 8px 8px 5px #888888;" src="http://blueprint-designer-guide.enstratius.com/_static/acme_logo.jpg"></div>
<p style='text-align:center;'>Thank you for visiting our website. We look forward to having your business!</p>
</body>
</html>

To run this tutorial you do not need a user account on Docker Hub nor do you need to build a Docker Image. You can use the gforghetti/apache:latest image.