# Option xxx expects a single value

**URL:** <https://forum.keycloak.org/t/option-xxx-expects-a-single-value/18087>\
**Category:** Configuring the server\
**Tags:** database\
**Created:** [October 24, 2022, 8:20pm UTC](https://forum.keycloak.org/t/option-xxx-expects-a-single-value/18087 "2022-10-24T20:20:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![maxivis](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@maxivis](https://forum.keycloak.org/u/maxivis)\
**Post date:** [October 24, 2022, 8:20pm UTC](https://forum.keycloak.org/t/option-xxx-expects-a-single-value/18087/1 "2022-10-24T20:20:36Z")

</div>

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

```auto
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:

```auto
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.

---

<div class="post-metadata">

**Author:** ![weltonrodrigo](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/weltonrodrigo/32/3104_2.png) [@weltonrodrigo](https://forum.keycloak.org/u/weltonrodrigo)\
**Post date:** [October 25, 2022, 11:44am UTC](https://forum.keycloak.org/t/option-xxx-expects-a-single-value/18087/2 "2022-10-25T11:44:30Z")

</div>

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

```bash
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

```

---

<div class="post-metadata">

**Author:** ![maxivis](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@maxivis](https://forum.keycloak.org/u/maxivis)\
**Post date:** [November 14, 2022, 3:40pm UTC](https://forum.keycloak.org/t/option-xxx-expects-a-single-value/18087/3 "2022-11-14T15:40:23Z")

</div>

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:

```auto
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

```
