- certbot
Path | Description |
---|---|
/etc/letsencrypt | Let's Encrypt files (see NGINX) |
Port | Process | TCP/UDP |
---|---|---|
80 | Certbot | TCP |
443 | Certbot | TCP |
To pull the image
docker pull gokaygurcan/certbot
To create a new certificate
docker run -it --rm \
--user root \
--name certbot-example.com \
-p 80:80 -p 443:443 \
-v /etc/letsencrypt:/etc/letsencrypt \
-w /usr/bin \
gokaygurcan/certbot \
certbot certonly \
-vvvv \
--agree-tos \
--standalone \
--http-01-port 80 \
--tls-sni-01-port 443 \
-d example.com \
-m "[email protected]"
To renew an existing certificate(s)
docker run -it --rm \
--user root \
--name certbot-renew \
-p 80:80 -p 443:443 \
-v /etc/letsencrypt:/etc/letsencrypt \
-w /usr/bin \
gokaygurcan/certbot \
certbot renew \
--http-01-port 80 \
--tls-sni-01-port 443