Skip to content
Sudarshan Wadkar edited this page Oct 26, 2018 · 3 revisions

How to troubleshoot?

Let's say the nginx-proxy container name is nginxproxy.

Gather information

Get your versions

docker version
docker-compose version  # if you are using docker-compose
docker images --format "{{.ID}}\t{{.Repository}}:{{.Tag}}" jwilder/nginx-proxy

Extract the log

docker logs nginxproxy

Extract the generated nginx configuration

docker exec nginxproxy cat /etc/nginx/conf.d/default.conf

Manually reload nginx

docker exec nginxproxy nginx -s reload

This will eventually provide an useful error message that is not provided in the container log.

Configuration file errors for nginx

Make sure that you don't use quotes while declaring variables in docker-compose.yml. See this issue if you are getting errors while parsing the generated nginx configuration file.