You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

M4 CPU无法运行Keycloak Docker镜像的问题求助

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=7

JRE 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.base

No 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 failed

The 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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.14 11:14:30