Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

M1 mac cannot run jboss/keycloak docker image

Switched to m1 mac a week ago and I cannot get my application up and running with docker because of the jboss/keycloak image not working as expected. Getting the following message from the container when trying to access localhost:8080

12:08:12,456 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC000001: Failed to start service org.wildfly.network.interface.private: org.jboss.msc.service.StartException in service org.wildfly.network.interface.private: WFLYSRV0082: failed to resolve interface private

12:08:12,526 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([("interface" => "private")]) - failure description: {"WFLYCTL0080: Failed services" => {"org.wildfly.network.interface.private" => "WFLYSRV0082: failed to resolve interface private"}}

12:08:13,463 ERROR [org.jboss.as] (Controller Boot Thread) WFLYSRV0026: Keycloak 12.0.4 (WildFly Core 13.0.3.Final) started (with errors) in 20826ms - Started 483 of 925 services (54 services failed or missing dependencies, 684 services are lazy, passive or on-demand)

Tried with all image versions and all behave the same. Has anyone managed to run this image without issues? Thanks

like image 703
Ivan Andonöw Avatar asked Sep 05 '25 20:09

Ivan Andonöw


2 Answers

Also you can build the keycloak docker image locally, I was able to start keycloak after doing that. Here are the steps I follow;

  1. Clone Keycloak containers repository: git clone [email protected]:keycloak/keycloak-containers.git
  2. Open server directory (cd keycloak-containers/server)
  3. Checkout at desired version, eg. git checkout 12.0.4
  4. Build docker image docker build -t jboss/keycloak:12.0.4 .
  5. Run Keycloak docker run --rm -p 9080:8080 -e KEYCLOAK_USER=admin -e KEYCLOAK_PASSWORD=admin jboss/keycloak:12.0.4

enter image description here

like image 144
Mike Oshadami Avatar answered Sep 08 '25 16:09

Mike Oshadami


Using this image, I am now able to startup keycloak. https://hub.docker.com/r/wizzn/keycloak

like image 42
Mehmet Pekdemir Avatar answered Sep 08 '25 16:09

Mehmet Pekdemir