You need to mount the volume like described here:
https://hub.docker.com/r/jboss/keycloak/
For example:
docker run -e KEYCLOAK_USER=<USERNAME> -e KEYCLOAK_PASSWORD=<PASSWORD> \ -e
KEYCLOAK_IMPORT=/tmp/example-realm.json -v
/tmp/example-realm.json:/tmp/example-realm.json jboss/keycloak
I hope it helps.
On Thu, Oct 25, 2018 at 6:57 AM Anselme Ndeke <ndekefa(a)gmail.com> wrote:
Hello,
It looks like the following documented docker import options are ignored:
docker run -e KEYCLOAK_USER=<USERNAME> -e KEYCLOAK_PASSWORD=<PASSWORD> \
-e KEYCLOAK_IMPORT=/tmp/example-realm.json -v
/tmp/example-realm.json:/tmp/example-realm.json jboss/keycloak
while importing the same file using GUI works. Am I missing something?
keycloak version is 4.5.0.final
--
Regards,
Anselme
_______________________________________________
keycloak-user mailing list
keycloak-user(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user