2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

rails7×docker立ち上げ時にCould not find ~ in locally installed gemsというエラーの解決方法

Posted at

rails7とdockerを使って開発環境を立ち上げている時に起きたエラーでしょーもない事で無駄に解決せずにハマっていたのでタイトルのエラーが出た時の解決方法をメモとして書いておきます。

エラー内容

#実行コマンド
docker-compose up
#エラー
Could not find sprockets-rails-3.4.2, pg-1.5.3, puma-5.6.5, importmap-rails-1.1.6, turbo-rails-1.4.0, stimulus-rails-1.2.1, jbuilder-2.11.5, bootsnap-1.16.0, debug-1.7.2, web-console-4.2.0, capybara-3.39.0, selenium-webdriver-4.9.0, webdrivers-5.2.0, sprockets-4.2.0, msgpack-1.7.0, irb-1.6.4, reline-0.3.3, bindex-0.8.1, addressable-2.8.4, regexp_parser-2.8.0, xpath-3.2.0, rubyzip-2.3.2, websocket-1.2.9, public_suffix-5.0.1 in locally installed gems

解決方法

docker-compose build
docker-compose up

docker-compose buildをしたつもりですが、出来ていませんでした。
ちなみに、私の場合はなぜかキャッシュのせいで一発では解決しなかったので
docker-compose build --no-cacheを実行しました。

まとめ

docker大好き🐳

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?