Bundler::GemNotFound: Could not find mimemagic-0.3.5 in any of the sources on Rails project with Docker Bundler::GemNotFound: Could not find mimemagic-0.3.5 in any of the sources on Rails project with Docker docker docker

Bundler::GemNotFound: Could not find mimemagic-0.3.5 in any of the sources on Rails project with Docker


bundle update --conservative mimemagic 

also try with newer version rather than locking it.it worked for us with 0.3.9, but now there is 0.3.10(have not tried it),


Solved it using:

bundle update mimemagic

I was getting the error Your bundle is locked to mimemagic (0.3.5) from rubygems on bundle install.

This updated mimemagic version to 0.3.10 and added nokigiri and rake dependencies in Gemfile.lock for me.


You can modify your Gemfile as below:

gem 'mimemagic', github: 'mimemagicrb/mimemagic', ref: '01f92d86d15d85cfd0f20dabd025dcbd36a8a60f' 

More details are here