[RAILS] What to do if Could not find hoge in any of the sources Run `bundle install` to install missing gems. Appears in the docker container

Every time I do bundle install, I restart docker's rails container and see ↓ If that doesn't work,

docker


docker-compose build --no-cache

Do the following: reference https://fuqda.hatenablog.com/entry/2019/03/21/204118

Finally

Maybe my docker file is bad. Or maybe you need to rails s every time you bundle install.

Recommended Posts

What to do if Could not find hoge in any of the sources Run `bundle install` to install missing gems. Appears in the docker container
What to do when ‘Could not find’ in any of the sources appears in the development environment with Docker × Rails × RSpec
[Note] What to do if bundle install in Chapter 3 of the rails tutorial is not possible
What to do when a could not find driver appears when connecting to a DB in a Docker environment
[Rails & Docker & MySQL environment construction] Could not find gem ‘mysql2 (> = 0.4.4, <0.6.0)’ in any of the gem sources listed in your Gemfile.
Could not find coderay-1.1.3 in any of the sources (Bundler :: GemNotFound) during co-development
What to do if you get To install the missing version, run `gem install bundler: 2.1.4`
What I did when I was addicted to the error "Could not find XXX in any of the sources" when I added a Gem and built it
[Rails] What to do if you accidentally install bundle in the production environment in your local environment
What to do if you can't bundle update and bundle install after installing Ruby 3.0.0 in the Rails tutorial
What to do if you get Could not locate Gemfile or .bundle / directory
What to do if the changes are not reflected in the jar manifest file
When composer install/require in the Docker container, it becomes `Could not find package`
What to do if you can't get the text of an element in Selenium
What to do when Rails on Docker does not reflect controller changes in the browser
What to do if mysql2 gets a bundle install error
What to do when "relation" hibernate_sequence "does not exist" in the ID column of PostgreSQL + JPA
[Ubuntu 20.04] What to do if the external monitor is not recognized
What to do if you get a gcc error in Docker
What to do when the changes in the Servlet are not reflected
What to do if the Rails page doesn't appear in Rails tutorial 1.3.2
What to do if Cloud9 is full in the Rails tutorial
What to do if you forget the root password in CentOS7
What to do if you get an error with bundle install by entering gem'bcrypt' in your Gemfile
What to do if Operation not permitted is displayed when you execute a command in the terminal
Add gem'rails-i18n','~> 6.0.0' and what to do if bundle install gives an error
What to do if the background image is not applied after deployment
What to do if you can't install the plugin from the Eclipse marketplace
[Rails] What to do if you get an error saying "Could not find a JavaScript runtime." When executing the rails s command on Catalina
What to do if an error occurs when nokogiri enters when bundle install
What to do if you have enabled Use the WSL2 based engine in Docker Desktop with insufficient WSL2 installation
What to do if you get Could not save master table to file after importing a project in Eclipse
What to do if you install Ubuntu
What to do when rails db: seed does not reflect in the database
[Swift] What to do if the app icon is set but not reflected
What to do if the rails server doesn't run out on AWS cloud9
[Java] What to do if the contents saved in the DB and the name of the enum are different in the enum that reflects the DB definition
What to do if you get an error saying "Could not find a JavaScript runtime." When starting rails server
What to do if you can't find the JDK you put in SDKMAN after migrating from bash to zsh on macOS
How to check the logs in the Docker container
What to do if the server tomcat dies
What to do if the update does not take effect after deploying Rails AWS
What to do if you get a wrong number of arguments error in binding.pry
How to install Docker in the local environment of an existing Rails application [Rails 6 / MySQL 8]
What to do if Failure / Error: require File.expand_path ('../ config / environment', __dir__) appears in RSpec
What to do if you get the error Couldn't find Item without an ID
What to do if the JSONHint annotation does not work with lombok and JSONIC
What to do if the breakpoint is shaded and does not stop during debugging
How to make a jar with old Hadoop (hadoop-core-0.20.2-cdh3u6) in Gradle: (What to do if you get Could not expand ZIP ..)
[Maven] What to do if you are asked to incorporate a jar that is not in the remote repository into the war
What to do if you select a JRE in Eclipse and get "The selected JRE does not support the current compliance level 11"
What to do if you get `rescue in block in modules_for_hoge': Missing hoge file hoge / hoge_hoge.rb (AbstractController :: Helpers :: MissingHogeError) in rails s even though the file is in the specified error location.