2.4.56-bullseye | docker pull icr.io/ibmz/httpd@sha256:f45060a56b43c0acc84a1eb72f8cdd6e9c0b13aecb99192244748d9d32d11387 | Vulnerability Report | 03-13-2023 | 2.4.54-bullseye | docker pull icr.io/ibmz/httpd@sha256:3b157a08ccad67729c8195b6b1dc39d7c6f543ad5acf76dee8a15a0d6f44debd | Vulnerability Report | 09-09-2022 |
Version | Pull String | Security (IBM Cloud) | Created |
---|---|---|---|
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.
<!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>
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.