I have been using the import feature with Keycloak 18.
You either:
- prepare a custom image where you ran the
kc.sh buildas a dockerfile step and setENTRYPOINT ["/opt/keycloak/bin/kc.sh","start", "--import-realm"]
Your realm files should be at/opt/keycloak/data/import/ - Use the official image with a custom entrypoint script where you
kc.sh buildand themkc.sh start --import-realm