There has been some demand for a Certbot Docker image. While we currently have one hosted on quay.io, we feel that this file can be greatly improved. To know what direction to take the Certbot Dockerfile(s), we’d like to know how you plan to use it.
The big hurdle with running Certbot in Docker is many of Certbot’s plugins cannot be easily used. To use webroot
, every webroot has to be mounted in the container running Certbot. To use standalone
, incoming connections on port 80/443 in the host system need to be mapped into the Certbot container.
Using an installer plugin to automatically install the certificate that Certbot obtains is extremely difficult, unless the server you want to install the certificate to is also running in the same Docker container. This is because, at least in the case of the official installer plugins such as Apache and Nginx, Certbot needs access to the executables for your web server in order to restart/reload your web server (and they need to work).
In short, what’s your use case for running Certbot in Docker? Please tell us what you’d like to see from a Certbot Docker image and how you plan to use it.