Docker Rails app fails to be served - curl: (56) Recv failure: Connection reset by peer

后端 未结 2 655
-上瘾入骨i
-上瘾入骨i 2020-12-31 01:39

I build a Rails app container with the following Dockerfile:

$ cat Dockerfile
FROM ruby:2.2

MAINTAINER Luca G. Soave 

RUN apt-g         


        
2条回答
  •  情深已故
    2020-12-31 02:04

    Rails server documentation states that the server by default binds to localhost, and this usually prevents dockerized application to accept connections. Try changing it to 0.0.0.0.

提交回复
热议问题