Sign inSign up

centos/httpd

By centos

•Updated over 7 years ago

Image
36

1M+

centos/httpd repository overview

⁠dockerfiles-centos-httpd

CentOS Dockerfile for Apache httpd

⁠Build

Copy the sources down and do the build

# docker build --rm -t <username>/httpd .

⁠Usage

To run (if port 8080 is available and open on your host):

# docker run -d -p 8080:8080 <username>/httpd

or to assign a random port that maps to port 80 on the container:

# docker run -d -p 8080 <username>/httpd

To the port that the container is listening on:

# docker ps

⁠Test

# curl http://localhost:8080

Tag summary

Content type

Image

Digest

sha256:26c667446…

Size

103.1 MB

Last updated

over 7 years ago

docker pull centos/httpd