I build a Rails app container with the following Dockerfile:
$ cat Dockerfile FROM ruby:2.2 MAINTAINER Luca G. Soave RUN apt-g
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.
localhost
0.0.0.0