Public Repository

Last pushed: a year ago
Short Description
The Apache HTTP Server Project Clone From httpd:2.4 Offcial And Add nano Editor
Full Description

Supported tags

  • 2.5

Create a Dockerfile in your project

FROM 162c01go1/httpd:2.5
COPY ./public-html/ /usr/local/apache2/htdocs/
public-html is your project html web

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

$ docker build -t my-apache2 .
$ docker run -d --name my-app -p 8080:80 my-apache2

Using bash

$ docker exec -it my-app bash

Without a Dockerfile

If you don't want to include a Dockerfile in your project, it is sufficient to do the following:

$ docker run -d --name my-app -p 8080:80 -v "$PWD":/usr/local/apache2/htdocs/ 162c01go1/httpd:2.5
-v "$PWD":/usr/local/apache2/htdocs/ mount folder from host os to folder in container

Run original image

$ docker run -d --name my-app -p 8080:80 162c01go1/httpd:2.5

Docker Pull Command