Fedora dockerfile for httpd
Get Docker version
# docker version
To build:
Copy the sources down and do the build-
# docker build --rm -t <username>/httpd .
To run (if port 80 is open on your host):
# docker run -d -p 80:80 <username>/httpd
or to assign a random port that maps to port 80 on the container:
# docker run -d -p 80 <username>/httpd
To the port that the container is listening on:
# docker ps
To test:
# curl http://localhost
Content type
Image
Digest
sha256:f4d83e423…
Size
94.6 MB
Last updated
over 8 years ago
docker pull envstacks/apache:f21