前提
$ docker-compose up のコマンド入力後にエラーが発生しています。
実現したいこと
- Dockerを起動したい
発生している問題・エラーメッセージ
yuri@yuris-MacBook-Air recipegram_docker % docker-compose up [+] Building 1.7s (9/10) => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 365B 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load metadata for docker.io/library/ruby:2.5.3 0.7s => [1/6] FROM docker.io/library/ruby:2.5.3@sha256:ae790cc668ca4dd837399a 0.0s => [internal] load build context 0.0s => => transferring context: 22.10kB 0.0s => CACHED [2/6] RUN apt-get update -qq && apt-get install -y vim nodejs 0.0s => CACHED [3/6] COPY . /fishingshares 0.0s => CACHED [4/6] WORKDIR /fishingshares 0.0s => ERROR [5/6] RUN bundle install 0.7s ------ > [5/6] RUN bundle install: #0 0.695 You must use Bundler 2 or greater with this lockfile. ------ failed to solve: executor failed running [/bin/sh -c bundle install]: exit code: 20
試したこと
yuri@yuris-MacBook-Air recipegram_docker % bundle install
bundle installのコマンドを打った後は
Bundle complete! 13 Gemfile dependencies, 73 gems now installed. Use `bundle info [gemname]` to see where a bundled gem is installed.
と表示されます。
補足情報
Rails 7.0.4
ruby 3.2.0 (2022-12-25 revision a528908271) [x86_64-darwin22]
Bundler version 2.4.1
Docker version 20.10.21, build baeda1f