I am using Boot2Docker in Yosemite trying to run swagger-io.
In virtualbox, in the vm where docker runs I port forwarded port 8080. Then I run boot to boot2docker and cloned the repository
$ git clone https://github.com/swagger-api/swagger-ui.git
$ cd swagger-ui-builder
$ docker build -t swagger-ui-builder .
$ docker run -p 127.0.0.1:8080:8080 swagger-ui-builder
The container is running but I get connection refuse when I try to load the page in the ip of the container and I don't understand why.