Docker: running httpd with SSL

docker run -d -p 443:443 inanimate/httpd-ssl

The more configurable way:

$ docker run -d -e SERVER_NAME=foobar.example.com \
-v /path/to/server.crt:/usr/local/apache2/conf/server.crt \
-v /path/to/server.key:/usr/local/apache2/conf/server.key \
inanimate/httpd-ssl

Note: you can use the –name to specify a docker name for the container

Leave a Reply