A copy of the official certbot image that when run yields SSL certificates in the mounted directory.
413
export DOMAIN=example.website.com
export EMAIL=[email protected]
docker run -it --rm
-v /etc/letsencrypt:/etc/letsencrypt
-v /var/lib/letsencrypt:/var/lib/letsencrypt
-p 80:80
certbot/certbot --standalone certonly --preferred-challenges http --agree-tos --email="$EMAIL" -d "$DOMAIN"
Replace $email and $domain with your email and domain.
The SSL certificates should now be in the volume mounted to /etc/letsencrypt inside the container, under the live/$domain directory.
Content type
Image
Digest
Size
33.1 MB
Last updated
over 9 years ago
docker pull craigrhodes/certbot