f-tonini/beautiful-jekyll-docker

Error running docker compose

bsj17 opened this issue · 0 comments

bsj17 commented

Followed instructions docker compose fails.

root@osboxes:/home/bsabadi/blog/beautiful-jekyll-docker# docker-compose up -d
Building with native build. Learn about native build in Compose here: https://docs.docker.com/go/compose-native-build/
Building jekyll
Sending build context to Docker daemon 19.97kB

Step 1/7 : FROM jekyll/jekyll
---> 61e560f6aee2
Step 2/7 : WORKDIR /srv/jekyll
---> Using cache
---> 8c98cbf311ac
Step 3/7 : COPY Gemfile .
---> Using cache
---> cdcbec6d5dab
Step 4/7 : COPY Gemfile.lock .
---> Using cache
---> ee91364b303e
Step 5/7 : EXPOSE 80 4000
---> Using cache
---> ad626411ea9d
Step 6/7 : RUN bundle install --quiet --clean
---> Running in b51b18692e97
/usr/local/lib/ruby/site_ruby/2.7.0/rubygems.rb:281:in find_spec_for_exe': **Could not find 'bundler' (1.16.1)** required by your /srv/jekyll/Gemfile.lock. (Gem::GemNotFoundException) To update to the latest version installed on your system, run bundle update --bundler. To install the missing version, run gem install bundler:1.16.1from /usr/local/lib/ruby/site_ruby/2.7.0/rubygems.rb:300:inactivate_bin_path'
from /usr/local/bin/bundle:23:in `

'
The command '/bin/sh -c bundle install --quiet --clean' returned a non-zero code: 1
ERROR: Service 'jekyll' failed to build