I installed Ruby 2.7.5, and within the Dockerfile, specified bundler (version 2.2.0) to be installed:
RUN gem install bundler -v 2.2.0 --no-document
the output of this is:
INFO RUN gem install bundler -v 2.2.0 --no-document INFO cmd: /bin/sh INFO args: [-c gem install bundler -v 2.2.0 --no-document] INFO Running: [/bin/sh -c gem install bundler -v 2.2.0 --no-document] Successfully installed bundler-2.2.0
All seemed to be fine in that install, and
bundle works as gems specified in
Gemfile are installed. However, when I try to open the console, I see this:
/usr/lib/ruby/2.7.0/rubygems.rb:277:in `find_spec_for_exe': Could not find 'bundler' (2.2.0) required by your /app/Gemfile.lock. (Gem::GemNotFoundException) To update to the latest version installed on your system, run `bundle update --bundler`. To install the missing version, run `gem install bundler:2.2.0`
However, it is installed. as you can see from above. Also, when I output the version within the Dockerfile, I see:
Bundler version 2.2.0
It seemed to install fine, however, still see the error above, and it crashes immediately.
Is there something obvious I am doing wrong?