4.7. Start and configure the Keycloak server
To start a Keycloak server, use Docker and run the following command:
docker run --name keycloak -e KC_BOOTSTRAP_ADMIN_USERNAME=admin -e KC_BOOTSTRAP_ADMIN_PASSWORD=admin -p 8180:8080 quay.io/keycloak/keycloak:{keycloak.version} start-dev
where keycloak.version is set to 26.1.3 or later.
You can access your Keycloak Server at localhost:8180.
To access the Keycloak Administration Console, log in as the admin user. The username and password are both admin.
To create a new realm, import the realm configuration file. For more information, see the Keycloak documentation about how to create and configure a new realm.