After the lets encrypt certificate is mounted in the container, it is automatically updated with cerbot in the host. The certificate in the container will not be updated.

cerbot is in the host. I mount the certificate applied for by letsencrpyt to the docker container of nginx. After each update of the certificate validity period, the certificate in the container will not take effect. It requires me to restart the container to take effect every time. What"s going on?

Oct.25,2021

Certificate files are generally loaded into memory. So updating the certificate file usually requires reload, such as nginx and apache must reload for the new certificate to take effect.

if your program does not support reload at all (for example, tomcat), can only restart

Menu