LoginSignup
0
0

More than 3 years have passed since last update.

【Rails + Docker】You must use Bundler 2 or greater with this lockfile.

Last updated at Posted at 2020-06-10

Bundlerのバージョンによるerrorのためバージョンを指定する必要がある

Volumeを削除

$ docker system prune
Are you sure you want to continue? [y/N] y

$ docker volume ls
DRIVER              VOLUME NAME
local               docker_bundle

$ docker volume rm docker_bundle

Dockerfileを変更

Dockerfile.backend
+ENV BUNDLER_VERSION 2.0.2
-RUN gem install bundler
+RUN gem install bundler -v '2.0.2'

buildする

$ docker-compose build
$ docker-compose up

以上で解決した。ただこのやり方がベストか不明

0
0
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
0
0