# Nginx fails to start inside container

**URL:** <https://community.letsencrypt.org/t/nginx-fails-to-start-inside-container/90032>\
**Category:** Help\
**Created:** [March 31, 2019, 11:14pm UTC](https://community.letsencrypt.org/t/nginx-fails-to-start-inside-container/90032 "2019-03-31T23:14:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mustafabutt](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/mustafabutt/32/30415_2.png) [@mustafabutt](https://community.letsencrypt.org/u/mustafabutt)\
**Post date:** [March 31, 2019, 11:14pm UTC](https://community.letsencrypt.org/t/nginx-fails-to-start-inside-container/90032/1 "2019-03-31T23:14:14Z")

</div>

Nginx fails to start inside container because of missing SSL certificate on new docker-compose install.  
PS: SSL certificates resides in the mentioned path.  
Looking for solution.

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. [https://crt.sh/?q=example.com](https://crt.sh/?q=example.com)), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:

I ran this command:  
sudo docker-compose up  
It produced this output:  
error “nginx\_1 | 2019/03/30 10:15:05 [emerg] 1#1: cannot load certificate”  
My web server is (include version):  
Nginx 1.10.3  
The operating system my web server runs on is (include version):  
Ubuntu 16.04.4 LTS  
My hosting provider, if applicable, is:  
AWS  
I can login to a root shell on my machine (yes or no, or I don’t know):  
yes  
I’m using a control panel to manage my site (no, or provide the name and version of the control panel):  
no  
The version of my client is (e.g. output of `certbot --version` or `certbot-auto --version` if you’re using Certbot): 0.25.1

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/letsencrypt/original/3X/c/a/ca6c06ea1ea201324bba7048c6841ce60236468d.png) [@system](https://community.letsencrypt.org/u/system)\
**Post date:** [April 30, 2019, 11:14pm UTC](https://community.letsencrypt.org/t/nginx-fails-to-start-inside-container/90032/2 "2019-04-30T23:14:18Z")

</div>

Closed on April 30, 2019, 11:14pm UTC

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