0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Keycloak のインストール

Last updated at Posted at 2025-03-15

Docker にインストールします。

Docker が動いていることを確認

$ sudo systemctl status docker
● docker.service - Docker Application Container Engine
     Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; preset: >
     Active: active (running) since Sat 2025-03-15 16:41:40 JST; 44min ago

Docker のバージョン

$ docker --version
Docker version 28.0.1, build 068a01ea94

Keycloak のインストール

docker run -p 8080:8080 -e KC_BOOTSTRAP_ADMIN_USERNAME=admin -e KC_BOOTSTRAP_ADMIN_PASSWORD=admin quay.io/keycloak/keycloak:26.1.4 start-dev

インストールの確認

$ docker ps
CONTAINER ID   IMAGE                              COMMAND                   CREATED          STATUS          PORTS                                                             NAMES
9d367621dff7   quay.io/keycloak/keycloak:26.1.4   "/opt/keycloak/bin/k…"   12 minutes ago   Up 12 minutes   8443/tcp, 0.0.0.0:8080->8080/tcp, [::]:8080->8080/tcp, 9000/tcp   kind_newton

Sign in

http://localhost:8080 にアクセス
image.png

Username: admin
Password: admin

image.png

コンテナーの操作

停止

docker stop kind_newton

開始

docker start kind_newton
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?