при создании нового приложения rails с docker
с использованием ruby 2.7.1 и rails 5.0.1
при выполнении этой команды
docker-compose run app rails new . --force --database=mariadb --skip-bundle
Я получаю эту ошибку
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
rails (= 5.0.1) was resolved to 5.0.1, which depends on
bundler (< 2.0, >= 1.3.0)
Current Bundler version:
bundler (2.1.4)
This Gemfile requires a different version of Bundler.
Perhaps you need to update Bundler by running `gem install bundler`?
Could not find gem 'bundler (< 2.0, >= 1.3.0)', which is required by gem 'rails
(= 5.0.1)', in any of the sources.
ERROR: Service 'app' failed to build: The command '/bin/sh -c bundle install' returned a non-zero code: 6
Хотя я проверяю, используя команду
gem list bundler
*** LOCAL GEMS ***
bundler (1.17.3)
bundler-unload (1.0.2)
rubygems-bundler (1.4.5)
, если присутствует пакет, то почему предупреждая об ошибке заранее