Return to Image List

httpd

httpd

The Apache HTTP Server, colloquially called Apache, is a Web server application notable for playing a key role in the initial growth of the World Wide Web. Originally based on the NCSA HTTPd server, development of Apache began in early 1995 after work on the NCSA code stalled. Apache quickly overtook NCSA HTTPd as the dominant HTTP server, and has remained the most popular HTTP server in use since April 1996.

See httpd.apache.org for more information

This image is built by IBM to run on the IBM Z architecture and is not affiliated with any other community that provides a version of this image.


License

View license information here

As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).

As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.


Versions

Use the pull string below for the version of this image you require.
2.4.56-bullseye docker pull icr.io/ibmz/httpd@sha256:f45060a56b43c0acc84a1eb72f8cdd6e9c0b13aecb99192244748d9d32d11387 Vulnerability Report03-13-2023
2.4.54-bullseye docker pull icr.io/ibmz/httpd@sha256:3b157a08ccad67729c8195b6b1dc39d7c6f543ad5acf76dee8a15a0d6f44debd Vulnerability Report09-09-2022
Version Pull String Security (IBM Cloud) Created

Usage Notes

This image only contains Apache httpd with the defaults from upstream. If you want to run a simple HTML server, create a simple Dockerfile to your project alongside a folder public-html/ containing your HTML to be hosted.

Create a webpage in public-html/index.html as such:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Successfully hosted content on httpd!</title>
</head>
<body>
<h1>Successfully hosted content on httpd!</h1>
</body>
</html>

Create a Dockerfile in the same directory as public-html:

FROM icr.io/ibmz/httpd:[version]
COPY ./public-html/index.html /usr/local/apache2/htdocs/
EXPOSE 80

Now you can run the commands to build and run the image:

docker build -t my-httpd .
docker run -dit --name my-running-app -p 8097:80 my-httpd

Now, visit [your system IP]:8097 on a web broswer to see the contents of index.html hosted!

Further usage notes and instructions can be found on the docker httpd docs page.