Sign inSign up

dockerhamse/apache

By dockerhamse

•Updated about 7 years ago

This image only contains Apache httpd with the defaults from upstream

Image
0

61

dockerhamse/apache repository overview

This image only contains Apache httpd with the defaults from upstream. There is no PHP installed.

How to use:

1.Create a Dockerfile in your project and create a public-html file in your current working directory.

FROM httpd:2.4

COPY ./public-html/ /usr/local/apache2/htdocs/

  1. Then, run the commands to build and run the Docker image:

$ docker build -t my_apache .

$ docker run -dit --name my_apache _container -p 8080:80 my-apache

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/ httpd:2.4

Tag summary

Content type

Image

Digest

Size

53.9 MB

Last updated

about 7 years ago

docker pull dockerhamse/apache:v.0.1