Sign inSign up

docker2021repos/httpd

By docker2021repos

•Updated almost 5 years ago

Image
0

566

docker2021repos/httpd repository overview

⁠HTTPD on Ubuntu 20.4 focal

docker2021repos/httpd:latest

⁠Tags

  • docker2021repos/httpd:latest
  • docker2021repos/httpd:2
  • docker2021repos/httpd:2.4
  • docker2021repos/httpd:2.4.49
  • docker2021repos/httpd:focal
  • docker2021repos/httpd:ubuntu
  • docker2021repos/httpd:ubuntu-focal
  • docker2021repos/httpd:2.4-focal
  • docker2021repos/httpd:2.4-ubuntu

⁠Arch

  • linux/amd64
  • linux/arm64

⁠What is 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.

⁠How to use this image.

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!

⁠Without a Dockerfile

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!

Tag summary

Content type

Image

Digest

Size

209.4 MB

Last updated

almost 5 years ago

docker pull docker2021repos/httpd