Update Let's Encrypt account email using Certbot Docker image

Don't miss certificate expiry alerts

Geschrieben von Timo Rieber am 8. März 2025

Keeping your Let's Encrypt account email up to date is essential for receiving important notifications about certificate renewals and expirations. If you're using Certbot in a Docker container, you can update your account email with a simple command.

Steps to update your email

Run the following command, replacing the volumes and john@example.org with your new email address:

sudo docker run --rm --interactive --tty \
  --volume /path/to/conf:/etc/letsencrypt \
  --volume /path/to/www:/var/www/certbot \
  certbot/certbot --verbose update_account --email john@example.org
Bash

Explanation

  • --rm: Removes the container after execution
  • --interactive --tty: Ensures an interactive session
  • --volume: Maps your Certbot configuration and webroot directories to persist data
  • certbot/certbot --verbose update_account --email: Updates the registered email with Let's Encrypt

Summary

Updating your Let's Encrypt account email is a small but crucial maintenance task. Running Certbot in Docker simplifies this process, ensuring that your account stays updated without requiring local installations. Have you encountered any challenges with Certbot and email updates? Share your experience!