Skip to content

Error when running bindmount-sample-1 #163

@vkhemlan

Description

@vkhemlan

Hi! I'm following the Udemy course and in the Bind Mounts Assignment I'm running into the following error when executing the given docker command

docker run -p 80:4000 -v $(pwd):/site bretfisher/jekyll-serve

[DEPRECATED] Platform :mingw, :x64_mingw, :mswin will be removed in the future. Please use platform :windows instead.
Fetching gem metadata from https://rubygems.org/..........
Fetching sassc 2.4.0
Fetching jekyll-sass-converter 2.2.0
Fetching rouge 3.30.0
Fetching unicode-display_width 1.8.0
Fetching terminal-table 2.0.0
Fetching jekyll 4.2.2
Fetching jekyll-feed 0.17.0
Fetching jekyll-seo-tag 2.8.0
Fetching minima 2.5.2
Installing unicode-display_width 1.8.0
Installing jekyll-sass-converter 2.2.0
Installing jekyll-feed 0.17.0
Installing terminal-table 2.0.0
Installing minima 2.5.2
Installing jekyll-seo-tag 2.8.0
Installing jekyll 4.2.2
Installing sassc 2.4.0 with native extensions
Installing rouge 3.30.0
Bundle complete! 7 Gemfile dependencies, 32 gems now installed.
Use bundle info [gemname] to see where a bundled gem is installed.
/usr/local/bundle/gems/jekyll-4.2.2/lib/jekyll.rb:28: warning: csv used to be loaded from the standard library, but is not part of the default gems since Ruby 3.4.0.
You can add csv to your Gemfile or gemspec to fix this error.
bundler: failed to load command: jekyll (/usr/local/bundle/bin/jekyll)
/usr/local/lib/ruby/4.0.0/bundled_gems.rb:60:in 'Kernel.require': cannot load such file -- csv (LoadError)
from /usr/local/lib/ruby/4.0.0/bundled_gems.rb:60:in 'block (2 levels) in Kernel#replace_require'
from /usr/local/bundle/gems/jekyll-4.2.2/lib/jekyll.rb:28:in '<top (required)>'
from /usr/local/lib/ruby/4.0.0/bundled_gems.rb:60:in 'Kernel.require'
from /usr/local/lib/ruby/4.0.0/bundled_gems.rb:60:in 'block (2 levels) in Kernel#replace_require'
from /usr/local/bundle/gems/jekyll-4.2.2/exe/jekyll:8:in '<top (required)>'
from /usr/local/lib/ruby/site_ruby/4.0.0/rubygems.rb:305:in 'Kernel#load'
from /usr/local/lib/ruby/site_ruby/4.0.0/rubygems.rb:305:in 'Gem.activate_and_load_bin_path'
from /usr/local/bundle/bin/jekyll:25:in '<top (required)>'
from /usr/local/lib/ruby/site_ruby/4.0.0/bundler/cli/exec.rb:61:in 'Kernel.load'
from /usr/local/lib/ruby/site_ruby/4.0.0/bundler/cli/exec.rb:61:in 'Bundler::CLI::Exec#kernel_load'
from /usr/local/lib/ruby/site_ruby/4.0.0/bundler/cli/exec.rb:24:in 'Bundler::CLI::Exec#run'
from /usr/local/lib/ruby/site_ruby/4.0.0/bundler/cli.rb:504:in 'Bundler::CLI#exec'
from /usr/local/lib/ruby/site_ruby/4.0.0/bundler/vendor/thor/lib/thor/command.rb:28:in 'Bundler::Thor::Command#run'
from /usr/local/lib/ruby/site_ruby/4.0.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in 'Bundler::Thor::Invocation#invoke_command'
from /usr/local/lib/ruby/site_ruby/4.0.0/bundler/vendor/thor/lib/thor.rb:538:in 'Bundler::Thor.dispatch'
from /usr/local/lib/ruby/site_ruby/4.0.0/bundler/cli.rb:35:in 'Bundler::CLI.dispatch'
from /usr/local/lib/ruby/site_ruby/4.0.0/bundler/vendor/thor/lib/thor/base.rb:584:in 'Bundler::Thor::Base::ClassMethods#start'
from /usr/local/lib/ruby/site_ruby/4.0.0/bundler/cli.rb:29:in 'Bundler::CLI.start'
from /usr/local/lib/ruby/gems/4.0.0/gems/bundler-4.0.10/exe/bundle:28:in 'block in <top (required)>'
from /usr/local/lib/ruby/site_ruby/4.0.0/bundler/friendly_errors.rb:118:in 'Bundler.with_friendly_errors'
from /usr/local/lib/ruby/gems/4.0.0/gems/bundler-4.0.10/exe/bundle:20:in '<top (required)>'
from /usr/local/lib/ruby/site_ruby/4.0.0/rubygems.rb:305:in 'Kernel#load'
from /usr/local/lib/ruby/site_ruby/4.0.0/rubygems.rb:305:in 'Gem.activate_and_load_bin_path'
from /usr/local/bin/bundle:25:in '

'

What's next:
Debug this container error with Gordon → docker ai "help me fix this container error"

I'm running

Client: Docker Engine - Community
Version: 29.4.2
Context: desktop-linux
Debug Mode: false

On Fedora 43

Do you know by chance if I'm doing something wrong? It seems to be a direct docker command so I'm a little lost

Thanks and regards!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions