Public | Automated Build

Last pushed: 4 months ago
Short Description
Get a new certificate from letsencrypt or renew all your letsencrypt certificates
Full Description

letsencrypt docker image



Simply clone this repository and build the docker image:

git clone
cd letsencrypt
docker build -t jkuettner/letsencrypt .


Get a new certificate

The following example will try to register a new letsencrypt certificate for the domains

docker run --rm -ti \
    -v /path/to/your/webroot:/webroot \
    -v /path/to/ssl/target:/etc/letsencrypt \
    -e "DRY_RUN=1" \
    jkuettner/letsencrypt \
        -d domain.tld \
        -d www.domain.tld \
        -d subdomain.domain.tld

Renew your letsencrypt certificates

To renew you created certificates simply run the image without any parameters:

docker run --rm -ti \
    -v /path/to/your/webroot:/webroot \
    -v /path/to/ssl/target:/etc/letsencrypt \
    -e "DRY_RUN=1" \

Nice to know

  • /path/to/your/webroot means the webroot of your domain - e.g. /var/www/domain.tld
  • /path/to/ssl/target is the target directory for the registered ssl-certificates
  • -e "DRY_RUN=1" will set the --dry-run parameter for the letsencrypt-auto command
  • -e "RSA_KEY_SIZE=4096" will set the option --rsa-key-size 4096.
  • Make sure that your domain pointing to the correct webroot-dir
  • After the command is complete the owner of /path/to/ssl/target will be changed to the uid 10000
Docker Pull Command
Source Repository