Connection refused on docker container

后端 未结 6 920
面向向阳花
面向向阳花 2020-12-13 05:47

I\'m new to Docker and trying to make a demo Rails app. I made a dockerfile that looks like this:

FROM ruby:2.2
MAINTAINER marko@codeship.com

# Install apt         


        
6条回答
  •  渐次进展
    2020-12-13 06:16

    I had the same problem. I was using Docker Toolbox on Windows Home. Instead of localhost I had to use http://192.168.99.100:8080/.

    You can get the correct IP address using the command:

    docker-machine ip
    

    The above command returned 192.168.99.100 for me.

提交回复
热议问题