You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Bug]: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
#9536
Open
avivasyuta opened this issue
Jan 28, 2024
· 3 comments
Jekyll image runs in a docker container on macBooks with Apple Silicon chips. I have m3 Pro chip.
Current Behavior
Jekyll image run fails.
Relevant log output
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requestedchown: _site/feed.xml: Permission deniedchown: _site/2024/01/10/single_number.html: Permission deniedchown: _site/2024/01/10: Permission deniedchown: _site/2024/01/10: Permission denied...
The warning you're seeing is caused by running an amd64 Docker image on an M1 mac (or other ARM device) and is unrelated to your permission denied errors. You can add some options to your Docker command to make the warning go away if desired, but the warning isn't actually causing any problems.
The real problem is chown: _site/feed.xml: Permission denied. A filesystem permissions issue related to different user IDs (different owners) between the Docker container and your host machine. Possibly a new UID on your new M3 machine? Usage of JEKYLL_UID and JEKYLL_GID is documented in the jekyll-docker README.
In short, this isn't a bug with Jekyll, and I think you can fix the problem with JEKYLL_UID (or perhaps just remove the _site dir on the host machine and allow it to be regenerated).
Operating System
macOS 14.2.1 (23C71)
Ruby Version
2.6.10p210 (2022-04-12 revision 67958) [universal.arm64e-darwin23]
Jekyll Version
jekyll 4.2.2
GitHub Pages Version
No response
Expected Behavior
Jekyll image runs in a docker container on macBooks with Apple Silicon chips. I have m3 Pro chip.
Current Behavior
Jekyll image run fails.
Relevant log output
Code Sample
https://github.com/algorithmics-blog/algorithmics-blog.github.io
The text was updated successfully, but these errors were encountered: