docker nginx connection refused while connecting to upstream
问题 I use shiny server to build a web-app on port 3838, when i use nginx in my server it works well. But when I stop nginx on my server and try to use docker nginx, I find the site comes to a '502-Bad Gate Way' error and nginx log shows: 2016/04/28 18:51:15 [error] 8#8: *1 connect() failed (111: Connection refused) while connecting to upstream, ... I install docker-nginx by this command: sudo docker pull nginx My docker command line is something like (for clear i add some indent): sudo docker run