Installs cerbot into a Linux container
Certbot is an easy-to-use automatic client that fetches and deploys SSL/TLS certificates for your webserver. Certbot was developed by EFF and others as a client for Lets Encrypt and was previously known as the official Lets Encrypt client or the Let's Encrypt Python client. Certbot will also work with any other CAs that support the ACME protocol.
docker run --name=certbot \
-v /etc/localtime:/etc/localtime:ro \
-v <path to certificates>:/etc/letsencrypt \
-e DOCKMAIL=<mail address> \
-e DOCKMAILDOMAINS=<domains list> \
-e DOCKUPGRADE=<0|1> \
-p 80:80 \
-p 443:443 \
digrouz/cerbot certbot
docker run --name=certbot \
-v /etc/localtime:/etc/localtime:ro \
-v <path to certificates>:/etc/letsencrypt \
-e DOCKMAIL=<mail address> \
-e DOCKMAILDOMAINS=<domains list> \
-e DOCKUPGRADE=<0|1> \
-p 80:80 \
-p 443:443 \
digrouz/certbot certbot-renew
When you start the certbot
image, you can adjust the configuration of the certbot
instance by passing one or more environment variables on the docker run
command line.
This variable is not mandatory and specifies if the container has to launch software update at startup or not. Valid values are 0
and 1
. It has default value 0
.
This variable is mandatory and specifies the mail that has to be used to generate the certificates.
This variable is mandatory and specifies a list of domains (comma separated) for which a certificate should be generates
- The docker entrypoint can upgrade operating system at each startup. To enable this feature, just add
-e DOCKUPGRADE=1
at container creation. - This container uses the
standalone
authenticator methode which may require to stop any webserver or container that expose port80
and/or443
.
If you encounter an issue please open a ticket at github