W

web2

web2.cs.colorado.edu

$ docker build -t web2 .
$ docker run -d \
    --name web2 --hostname web2.cs.colorado.edu \
    -p 80:80 -p 443:443 
    -v /srv/web2:/srv:ro
    -v $PWD/httpd.conf:/etc/httpd/conf/httpd.conf:rw \
    web2

The Dockerfile builds httpd.conf into the image, however the above shows that you can mount it from this repo into the container. This way you don't have to rebuild the image and instead can restart the container. You can also enter the container, or run a command in the container:

$ docker restart web2
$ docker exec -ti web2 /bin/bash
$ docker exec web2 tail -f /var/log/httpd/error_log