I'm running the logstash:9.2.5 image on an ARM64 server (aarch64). Even though docker inspect shows the image architecture is arm64, the built-in JDK is actually x86_64, causing an Exec format error.
$ docker run -it --rm --entrypoint /bin/sh logstash:9.2.5 -c "od -An -t x1 -N 20 /usr/share/logstash/jdk/bin/java"
7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00
03 00 3e 00 <-- This indicates x86_64 (Machine type 0x3E)