docker2021repos/httpd:latest
docker2021repos/httpd:latestdocker2021repos/httpd:2docker2021repos/httpd:2.4docker2021repos/httpd:2.4.49docker2021repos/httpd:focaldocker2021repos/httpd:ubuntudocker2021repos/httpd:ubuntu-focaldocker2021repos/httpd:2.4-focaldocker2021repos/httpd:2.4-ubuntuThe 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.
This image only contains Apache httpd with the defaults from upstream. There is no PHP installed, but it should not be hard to extend. On the other hand, if you just want PHP with Apache httpd see the PHP image and look at the -apache tags. If you want to run a simple HTML server, add a simple Dockerfile to your project where public-html/ is the directory containing all your HTML.
Create a Dockerfile in your project
FROM docker2021repos/httpd:2.4
COPY ./public-html/ /usr/local/apache2/htdocs/
Then, run the commands to build and run the Docker image:
$ docker build -t my-apache2 .
$ docker run -dit --name my-running-app -p 8080:80 my-apache2
Visit http://localhost:8080 and you will see It works!
If you don't want to include a Dockerfile in your project, it is sufficient to do the following:
$ docker run -dit --name my-apache-app -p 8080:80 -v "$PWD":/usr/local/apache2/htdocs/ docker2021repos/httpd:2.4
Visit http://localhost:8080 and you will see It works!
Content type
Image
Digest
Size
209.4 MB
Last updated
almost 5 years ago
docker pull docker2021repos/httpd