[keycloak-user] Keycloak Docker image: unable to import a realm

Anselme Ndeke ndekefa at gmail.com
Thu Oct 25 11:14:15 EDT 2018


Yes, it is the command which I run. The json file can be found inside the
container's tmp folder.

While creating admin user works, I don't see any reference to KEYCLOAK_IMPORT
inside tools/docker-entrypoint.sh file.

Le jeu. 25 oct. 2018 à 16:56, Bruno Oliveira <bruno at abstractj.org> a écrit :

> 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 at 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 at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/keycloak-user
>>
>

-- 

Cordialement,

François Anselme NDEKE


More information about the keycloak-user mailing list