Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with running docker locally on mac m2 #2927

Closed
2 tasks done
simoneiriksson opened this issue Dec 30, 2024 · 2 comments
Closed
2 tasks done

Issue with running docker locally on mac m2 #2927

simoneiriksson opened this issue Dec 30, 2024 · 2 comments
Labels

Comments

@simoneiriksson
Copy link

simoneiriksson commented Dec 30, 2024

Have you checked that your issue isn't already filed?

  • I read through FAQ and searched through the past issues, none of which addressed my issue.
  • Yes, I have checked that this issue isn't already filed.

Bug description

docker container fails when starting

How to reproduce the bug

I have followed the steps 1-6 in the install.md, and then went to the Local setup using Docker section, where I have run $ docker compose pull succesfully. When I run
$ docker compose up, I get the attached error message.

Error messages and logs

% docker compose up       
[+] Running 1/0
 ✔ Container simoneirikssongithubio-jekyll-1  Created                                                                                                                                                                                                                                                          0.0s 
Attaching to jekyll-1
jekyll-1  | Entry point script running
jekyll-1  | Gemfile.lock is tracked by git, keeping it intact
jekyll-1  | bundler: failed to load command: jekyll (/usr/local/bundle/bin/jekyll)
jekyll-1  | /usr/local/bundle/gems/bundler-2.5.7/lib/bundler/definition.rb:596:in 'Bundler::Definition#materialize': Could not find nokogiri-1.17.2-aarch64-linux, google-protobuf-4.29.1-aarch64-linux, ffi-1.17.0-aarch64-linux-gnu in locally installed gems (Bundler::GemNotFound)
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.5.7/lib/bundler/definition.rb:203:in 'Bundler::Definition#specs'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.5.7/lib/bundler/definition.rb:270:in 'Bundler::Definition#specs_for'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.5.7/lib/bundler/runtime.rb:18:in 'Bundler::Runtime#setup'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.5.7/lib/bundler.rb:162:in 'Bundler.setup'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.5.7/lib/bundler/setup.rb:26:in 'block in <top (required)>'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.5.7/lib/bundler/ui/shell.rb:159:in 'Bundler::UI::Shell#with_level'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.5.7/lib/bundler/ui/shell.rb:111:in 'Bundler::UI::Shell#silence'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.5.7/lib/bundler/setup.rb:26:in '<top (required)>'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.5.7/lib/bundler/cli/exec.rb:56:in 'Kernel#require_relative'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.5.7/lib/bundler/cli/exec.rb:56:in 'Bundler::CLI::Exec#kernel_load'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.5.7/lib/bundler/cli/exec.rb:23:in 'Bundler::CLI::Exec#run'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.5.7/lib/bundler/cli.rb:451:in 'Bundler::CLI#exec'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.5.7/lib/bundler/vendor/thor/lib/thor/command.rb:28:in 'Bundler::Thor::Command#run'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.5.7/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in 'Bundler::Thor::Invocation#invoke_command'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.5.7/lib/bundler/vendor/thor/lib/thor.rb:527:in 'Bundler::Thor.dispatch'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.5.7/lib/bundler/cli.rb:34:in 'Bundler::CLI.dispatch'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.5.7/lib/bundler/vendor/thor/lib/thor/base.rb:584:in 'Bundler::Thor::Base::ClassMethods#start'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.5.7/lib/bundler/cli.rb:28:in 'Bundler::CLI.start'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.5.7/exe/bundle:28:in 'block in <top (required)>'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.5.7/lib/bundler/friendly_errors.rb:117:in 'Bundler.with_friendly_errors'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.5.7/exe/bundle:20:in '<top (required)>'
jekyll-1  |     from /usr/local/bundle/bin/bundle:25:in 'Kernel#load'
jekyll-1  |     from /usr/local/bundle/bin/bundle:25:in '<main>'

What operating system are you using?

macOS Sequoia 15.2 (24C101) on Apple M2 chip

Where are you seeing the problem on?

Running locally with Docker (docker compose)

More info

There is a suimilar issue here: #1540, but I could not use any of the comments to resolve my issue.

I am no docker shark, so I have not tried to fiddle with the Dockerfile, but it seems to me that bundler is looking for some gems that are not installed in the image (?).

Please don't be too harsh on me if I missed something truly basic, it my first ever issue :).

@simoneiriksson
Copy link
Author

I can now see that this has just been mentioned in issue 2911 also: #2911.

@simoneiriksson
Copy link
Author

I am closing this one now then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant