Skip to content

Files

Latest commit

55bdfec · Jul 10, 2019

History

History

httpd

dockerfiles-clefos-httpd

ClefOS 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