title: You must use Bundler 2 or greater with this lockfile. When running docker-compose up locally
body: <p>New to docker, I have been trying to use it with my rails project but haven't been able to start it up.</p>
  
  <p>Tried changing ruby versions, and searching the web, but most questions involved deploying the app to heroku, which is not my case.</p>
  
  <p>Docker file:</p>
  
  <pre><code>FROM ruby:2.4.1
  RUN mkdir /zssn
  WORKDIR /zssn
  COPY Gemfile /zssn/Gemfile
  COPY Gemfile.lock /zssn/Gemfile.lock
  RUN gem install bundler
  RUN bundle --version
  RUN bundle install
  COPY . /zssn
  
  CMD ["rails", "server"]
  </code></pre>
  
  <p>docker-compose-yml</p>
  
  <pre><code>version: '3'
  services:
    web:
      build: .
      command: rails s -p 3000 -b '0.0.0.0'
      volumes:
        - .:/zssn
      ports:
        - "3000:3000"
  </code></pre>
  
  <p>docker build . --no-cache, seems to be working fine when running the bundler command to install it.</p>
  
  <pre><code> ---&gt; Running in d4650608f428
  Successfully installed bundler-2.0.1
  </code></pre>
  
  <p>Any ideas?</p>