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.
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: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.