Renewing a certificate using certbot

Renewing a certificate using certbot

# connect into the running container
docker exec -it <docker container name> bash

# [OPTIONAL] install/update packages
apt-get update
apt-get -y install certbot
apt-get install python-certbot-nginx

# run certbot renewal command
certbot renew

exit