Jekyll 3.8.6 | Error: uninitialized constant Jekyll::Paginate::CatsAndTags::Pager

I using jekyll 3.8.6 and jekyll-paginate-v2 (2.0.0)
My _config.yaml:

plugins:
  - jekyll-paginate-v2
defaults:
  -
    scope:
      path: "" # an empty string here means all files in the project
      type: "posts" # previously `post` in Jekyll 2.2.
    values:
      layout: "post"`
.....
# Pagination Settings
pagination:
  enabled: true
  per_page: 5
  permalink: '/news/page:num/'
  title: ':title - page :num of :max'
  limit: 0
  sort_field: 'date'
  sort_reverse: true

My Gemfile :

gem 'jekyll', '~> 3.8.3'
gem 'jekyll-paginate-v2', '~> 2.0.0'
gem 'kramdown'
gem 'jekyll-assets', '~> 3.0.9'
gem 'less', '~> 2.6.0'
gem "bootstrap"
gem 'foreman'
gem 'wdm', '>= 0.1.0' if Gem.win_platform?

When I run docker build . I get this error:

Configuration file: _config.yml
Configuration file: _config.build.yml
            Source: app
       Destination: _site
 Incremental build: disabled. Enable with --incremental
      Generating...
jekyll 3.8.6 | Error:  uninitialized constant Jekyll::Paginate::CatsAndTags::Pager
Did you mean?  Jekyll::Page
The command '/bin/sh -c ./dev/scripts/build.sh && cat app/_layouts/default.html' returned a non-zero code: 1

and when I run ‘docker-compose run’ I get this error:

bundler: command not found: foreman
Install missing gem executables with `bundle install`

I can not understand what is the problem!
An help, please?