CentOS Dockerfile for Apache httpd
Copy the sources down and do the build
# docker build --rm -t <username>/httpd .
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
# curl http://localhost:8080
Content type
Image
Digest
Size
136.9 MB
Last updated
over 7 years ago
docker pull agawande/httpd