Sign inSign up

agawande/httpd

By agawande

•Updated over 7 years ago

Image
0

1.1K

agawande/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

Size

136.9 MB

Last updated

over 7 years ago

docker pull agawande/httpd