title: Unable to run rails console using Docker Compose
body: <p>Im quite new to Docker and have started using Docker Compose to run my rails 4 application in development on my OS X 10.10 machine. The rails app works fine but if i try to run the rails console using the command below:</p>
  
  <pre><code>docker-compose run web bundle exec rails console
  </code></pre>
  
  <p>or </p>
  
  <pre><code>docker-compose run web rails console
  </code></pre>
  
  <p>I get the following error:</p>
  
  <blockquote>
    <p>Could not find CFPropertyList-2.3.1 in any of the sources Run <code>bundle
    install</code> to install missing gems.</p>
  </blockquote>
  
  <p>I tried doing <code>docker-compose run web bundle install</code>, but i continue to get the same error. What could be the reason behind this ?. Below are my Dockerfile and docker-compose.yml .</p>
  
  <p><strong>Dockerfile</strong></p>
  
  <pre><code>FROM ruby:2.2.0
  
  RUN apt-get update -qq &amp;&amp; apt-get install -y build-essential libpq-dev nodejs npm nodejs-legacy
  RUN npm install -g phantomjs
  
  RUN mkdir /myapp
  WORKDIR /myapp
  
  ADD Gemfile /myapp/Gemfile
  ADD Gemfile.lock /myapp/Gemfile.lock
  
  RUN bundle install
  ADD . /myapp
  </code></pre>
  
  <p><strong>docker-compose.yml</strong></p>
  
  <pre><code>version: '2'
  services:
    db:
      image: postgres
    mailcatcher:
      image: yappabe/mailcatcher
      ports:
        - "1025:1025"
        - "1080:1080"
    web:
      build: .
      command: bundle exec rails s -p 3000 -b '0.0.0.0'
      volumes:
        - .:/myapp
      ports:
        - "3000:3000"
      links:
        - db
        - mailcatcher
  </code></pre>