Repository navigation
Replies: 2 comments 1 reply
What do you mean by rewrite? I think you are going to have to create your own Dockerfile in this situation, but you will use the official image as the base image.
That seems to be answered here https://stackoverflow.com/questions/63602211/how-to-specify-userid-and-groupid-for-volume-mount-point-on-docker-host
Those are happening because augmentation is running. If you take this approach you'll need a Dockerfile that changes the file permissions under /opt/keycloak |
by rewrite i mean re-build the official image all 3 points of your comment is to re-build the image, i don't understand why i need to re-build the image when i want to use it as it with no customisation |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
How to change the default container user 1000 without rewrite the official image
The underline question is : How configure correctly TLS (.crt + .key) files with keycloak as container ?
It can be nice to have according documentation on keycloak website
Context :
I'm using docker (with docker compose)
i got multiple web server running in container on the same host machine and there are sharing the same certificate.
My actual user is running with ID 1001, so i'm writing TLS file permissions for this user (.key 600, .crt 644)
Experimentation :
When i'm running keycloak container, the container cannot read the key... obviously because the user is 1000.
Okay, i change my keycloak container to my user 1001. Now when i'm running my container, it cannot start because it can't build (insufisant permissions)
Then :
How can must configure correctly my keycloak container using the default image to access to my TLS files ?
Note :
We do not want to add additionnal certificate only for keycloak
testing with container image quay.io/keycloak/keycloak:26.1.0
Related :
#15936
All reactions