Running Ruby Sinatra inside a Docker container not able to connect (via Mac host) or find commands (in different scenario)?
问题 I've tried two forms of Dockerfile to get a simple Ruby/Sinatra app running, and in both scenarios it fails for different reasons (I'll explain both in a moment). Effectively I want to access the Sinatra web server from my host (Mac OS X using Boot2Docker). The app structure is: . ├── Dockerfile ├── Gemfile ├── app.rb ├── config.ru The contents of the files are: Dockerfile Version 1... FROM ruby RUN mkdir -p /app WORKDIR /app COPY Gemfile /app/ RUN bundle install --quiet COPY . /app EXPOSE