docker 安装 keycloak

安装

创建docker网络

docker network create keycloak-network

启动容器

docker run --name keycloak -d -p 8081:8080 --net keycloak-network -e KEYCLOAK_USER=admin -e KEYCLOAK_PASSWORD=JfsfsflikK7eJSp6 -e DB_USER=keycloak -e DB_PASSWORD=keycloak -e JDBC_PARAMS='useSSL=false'  jboss/keycloak

解决网页报错 We are sorry... HTTPS required

docker exec -it keycloak bash
bash-4.4$ cd /opt/jboss/keycloak/bin/
bash-4.4$ ./kcadm.sh config credentials --server http://localhost:8080/auth --realm master --user admin
Logging into http://localhost:8080/auth as user admin of realm master
Enter password: ************
bash-4.4$ ./kcadm.sh update realms/master -s sslRequired=NONE
bash-4.4$
posted @ 2023-10-09 10:31  小卡拉米丶  阅读(238)  评论(0编辑  收藏  举报