rails can't find rake gem
问题 I have a basic Rails app running in docker. I can start it up just fine and serve responses. I can run rake -T just fine. But I cannot run a Rails generate command. It fails telling me Could not find rake-12.3.1 in any of the sources $ docker-compose run main bundle exec rails generate controller Welcome index Starting cognitopoc_db_1 ... done Could not find rake-12.3.1 in any of the sources Run `bundle install` to install missing gems. Here is my bundle env: $ docker-compose run main bundle