Skip to content

Issue with Latest Keycloak Docker Image Configuration  #17

@lukas-koschmieder

Description

@lukas-koschmieder

Problem

Upon following the instructions outlined in the official Deployment Guide, the Docker service does not start as expected. This issue specifically arises at step 3. Start the Service, line 5, when executing docker-compose up -d. The command kc.sh seems to have changed its options in recent Keycloak versions.

Temporary Solution

A workaround is to manually set the Keycloak version to 15.1.1 in the keycloak/docker-compose.yml file.

Docker Compose Output

keycloak-keycloak-1     | Keycloak - Open Source Identity and Access Management
keycloak-keycloak-1     | 
keycloak-keycloak-1     | Find more information at: https://www.keycloak.org/docs/latest
keycloak-keycloak-1     |
keycloak-keycloak-1     | Usage:
keycloak-keycloak-1     |
keycloak-keycloak-1     | kc.sh [OPTIONS] [COMMAND]
keycloak-keycloak-1     |
keycloak-keycloak-1     | Use this command-line tool to manage your Keycloak cluster.
keycloak-keycloak-1     | Make sure the command is available on your "PATH" or prefix it with "./" (e.g.:
keycloak-keycloak-1     | "./kc.sh") to execute from the current folder.
keycloak-keycloak-1     |
keycloak-keycloak-1     | Options:
keycloak-keycloak-1     |
keycloak-keycloak-1     | -cf, --config-file <file>
keycloak-keycloak-1     |                      Set the path to a configuration file. By default, configuration properties are
keycloak-keycloak-1     |                        read from the "keycloak.conf" file in the "conf" directory.
keycloak-keycloak-1     |
keycloak-keycloak-1     |       $ kc.sh start <OPTIONS>
keycloak-keycloak-1     |
keycloak-keycloak-1     |   Enable auto-completion to bash/zsh:
keycloak-keycloak-1     |
keycloak-keycloak-1     |       $ source <(kc.sh tools completion)
keycloak-keycloak-1     |
keycloak-keycloak-1     |   Please, take a look at the documentation for more details before deploying in
keycloak-keycloak-1     | production.
keycloak-keycloak-1     |
keycloak-keycloak-1     | Use "kc.sh start --help" for the available options when starting the server.
keycloak-keycloak-1     | Use "kc.sh <command> --help" for more information about other commands.
keycloak-keycloak-1 exited with code 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions