Skip to content

Instantly share code, notes, and snippets.

@thisismydesign
Created December 11, 2019 13:20
Show Gist options
  • Save thisismydesign/f5d32386d64f0d134cb3cee42a450450 to your computer and use it in GitHub Desktop.
Save thisismydesign/f5d32386d64f0d134cb3cee42a450450 to your computer and use it in GitHub Desktop.
Ruby docker image and bundler version

Ruby's docker images (e.g. ruby:2.6.3) use bundler v1 (e.g. 1.17.3), see: docker-library/ruby#268 (comment)

When bundling with bundler v2 locally it can lead to the the following exception:

Could not find 'bundler' (2.0.2) required by your /app/Gemfile.lock. (Gem::GemNotFoundException)

Solve this by using the correct bundle version locally:

gem install bundler -v 1.17.3
bundle _1.17.3_ install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment