envygeeks / jekyll-docker

⛴ Docker images, and CI builders for Jekyll.
ISC License
998 stars 282 forks source link

Docker image does not support arm64/Raspberry Pi #326

Open ghost opened 3 years ago

ghost commented 3 years ago

I'm trying to run this image to build a jekyll site on a Raspberry Pi 4B (https://www.raspberrypi.com/products/raspberry-pi-4-model-b/) which runs on the aarm64 architecture.

Using docker run -v $(pwd):/srv/jekyll -p 4000:4000 -it jekyll/jekyll:latest jekyll serve will download the image but fail with:

Status: Downloaded newer image for jekyll/jekyll:latest
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
standard_init_linux.go:228: exec user process caused: exec format error

Installing jekyll on the host, building the site, and running an apache docker image works because the httpd-alpine images support arm64. This method is not preferred because changes to the site require the image to be rebuilt and relaunched for every change.

KizzyCode commented 2 years ago

This is also an issue on M1 macs; Docker for Mac has an Amd64-emulation layer, but it is pretty slow.