Why are users not imported inside Keycloak Docker container?

149 Views Asked by At

I am trying to import a realm with users from one docker container into another. I exported the realm successfully using

./kc.sh export --dir export/ --realm test

This command now creates some file

test-realm.json
test-users-0.json
test-users-1.json

I then copy the files into the other docker container without a problem.

Now in the other container I simply run

./kc.sh import --dir export/

This results in the realm being created but without any users. What am I doing wrong? I found that if I manually put all users into the realm file it works, but this approach breaks after ~10k users because keycloak just hangs on import.

0

There are 0 best solutions below