M4 CPU无法运行Keycloak Docker镜像的问题求助
我在用M4 CPU运行Keycloak Docker镜像时遇到了问题,没法成功启动镜像。我的Docker Compose配置如下:
my-keycloak: image: quay.io/keycloak/keycloak:26.1.2 environment: KC_HOSTNAME: localhost KC_HOSTNAME_PORT: 7080 KC_HOSTNAME_STRICT_BACKCHANNEL: "true" KEYCLOAK_ADMIN: admin KEYCLOAK_ADMIN_PASSWORD: admin KC_HEALTH_ENABLED: "true" KC_LOG_LEVEL: info
启动时出现了Java运行时环境的致命错误,错误信息如下:
A fatal error has been detected by the Java Runtime Environment:
SIGILL (0x4) at pc=0x0000ffff7ef3fc5c, pid=1, tid=7JRE version: (21.0.6+7) (build )
Java VM: OpenJDK 64-Bit Server VM (21.0.6+7-LTS, mixed mode, sharing, tiered, compressed Oops, compressed class ptrs, g1 gc, linux-aarch64)
Problematic frame:
j java.lang.System.registerNatives()V+0 java.baseNo core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
An error report file with more information is saved as:
/opt/keycloak/hs_err_pid1.log
[0.010s][warning][os] Loading hsdis library failedThe crash happened outside the Java Virtual Machine in native code.
See problematic frame for where to report the bug.
我已经尝试过以下方法,但都没有解决问题:
- 执行
ulimit -c unlimited,没有效果 - 参考过相关的解决方案并尝试应用,依然无法成功启动
备注:内容来源于stack exchange,提问作者Alexandre Tranchant

