Docker unable to find fullchain.pem

My domain is:

Upon running my application as a container in docker it produces the following error:

nginx: [emerg] BIO_new_file("/etc/letsencrypt/live/") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen(’/etc/letsencrypt/live/’,‘r’) error:2006D080:BIO routines:BIO_new_file:no such file)

When I SSH into the server running my website and ran ‘sudo certbot certificates’ I got the following output:

Certificate Name:
Expiry Date: 2020-03-09 12:12:56+00:00 (VALID: 50 days)
Certificate Path: /etc/letsencrypt/live/
Private Key Path: /etc/letsencrypt/live/

Any ideas how to go about fixing this error?

Any help would be greatly appreciated as I’m sick of trying to fix this.

Haven’t you forget to copy the files (pem and key) from the host to the container image before running the container?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.