Just to clarify the other answers. I had the same issue. What helped for me was:
- stop all containers
-
comment out the two relevant lines
version: "3" services: keycloak: image: quay.io/keycloak/keycloak:latest environment: # KEYCLOAK_USER: admin # KEYCLOAK_PASSWORD: pass ...
-
start all containers;
- wait until keycloak container has successfully started
- stop all containers, again
-
comment back in the two lines from above
version: "3" services: keycloak: image: quay.io/keycloak/keycloak:latest environment: KEYCLOAK_USER: admin KEYCLOAK_PASSWORD: pass ...
- start all containers
This time (and subsequent times) it worked. Keycloak was running and the admin user was registered and working as expected.