Skip to content

Keycloak In Docker: ERROR: Strict hostname resolution configured but no hostname setting provided #33539

@shawkins

Description

@shawkins

Discussed in #20437

Originally posted by archmangler May 18, 2023
I'm following this keycloak documentation on how to get the KC optimised image running on docker:

https://www.keycloak.org/server/containers

I get the following cryptic error when trying to run the "optimized" keycloak docker image:

(base) welcome@Traianos-MacBook-Pro keycloak-docker % docker run --name mykeycloak -p 8443:8443 \
        -e KEYCLOAK_ADMIN=admin -e KEYCLOAK_ADMIN_PASSWORD=P@ssw0rd \
        quay.io/keycloak/keycloak:latest \
        start --optimized
ERROR: Unexpected error when starting the server in (production) mode
ERROR: Failed to start quarkus
ERROR: Strict hostname resolution configured but no hostname setting provided
For more details run the same command passing the '--verbose' option. Also you can use '--help' to see the details about the usage of the particular command.

It's not clear from the documentation how to resolve this error:

ERROR: Strict hostname resolution configured but no hostname setting provided

Any idea how to resolve this?

The resolution was to update the docs to include the relevant hostname option.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions