Option xxx expects a single value

Hi guys, I’m trying to get my keycloak local instance get to work with a local postgres DB, but I’m constantly getting the same error on different parameters Option 'xxx' expects a single value (it might be with “–db”, “–db-password” or whatever param I use. Examples:
With Docker

docker run --name keycloak_auto_build -p 8080:8080 \
        -e KEYCLOAK_ADMIN=admuser -e KEYCLOAK_ADMIN_PASSWORD=admpassword \
        quay.io/keycloak/keycloak:18.0.2 \
        start-dev \
        --auto-build \
        --db=postgres \
        –-hostname-strict=false \
        --db-url=jdbc:postgresql://localhost:5432/keycloak --db-username=myuser --db-password=mypassword

From command line:

bin/kc.sh start --db-url=jdbc:postgresql://localhost:5432/MY_SCHEMA --db-username=myuser --db-password=mypassword --db-schema=MY_SCHEMA

Has anyone an idea about what’s wrong? I’m using keycloak 18.0.2 quarkus version, and it’s really driven me crazy this situation.

I’m quite sure start-dev doesn’t need --auto-build, so you can just

docker run --name keycloak_auto_build -p 8080:8080 \
        -e KEYCLOAK_ADMIN=admuser -e KEYCLOAK_ADMIN_PASSWORD=admpassword \
        quay.io/keycloak/keycloak:18.0.2 \
        start-dev \
        --db=postgres \
        –-hostname-strict=false \
        --db-url=jdbc:postgresql://localhost:5432/keycloak --db-username=myuser --db-password=mypassword

Hi @weltonrodrigo, so sorry for the late response… thank you very much for your help, but I finally could make it work setting the parameters through command line:

export KC_DB=postgres
export KC_DB_SCHEMA=keycloak
export KC_DB_URL=jdbc:postgresql://localhost:5432/keycloak
export KC_DB_USERNAME=myuser
export KC_DB_PASSWORD=mypassword