-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keycloak Dev Service fails to start on rootless Docker setup #45940
Comments
/cc @geoand (devservices), @pedroigor (keycloak), @sberyozkin (keycloak), @stuartwdouglas (devservices) |
As a workaround, you can configure a custom start command like @cescoffier Do you know how to handle this case, right now I do |
You may have to change the owner of the file when copying it. |
Using following parameters the Keycloak container starts and the import of a realm file is working.
|
Thanks @cescoffier @bonneval, so I guess, we can use TestContainers API to run |
My guess would be:
Since all other Keycloak related files do have this permission in the container. I could try this, but not sure how to test this locally |
@bonneval Or if you can create a simple reproducer to save me some time on setting it up then I can test myself |
I tried to reproduce the issue on a different laptop.
The file permission in the container for the upconfig.json was:
I see differences in the permission flags and the owning user. I will experiment with your code and will come back to you. |
withCommand() will modifiy the startup command and is imho not the right to tool to solve the problem. During my testing I came up with following code snippet:
What do you think? |
Describe the bug
Keycloak Devservice fails to start with rootless docker with following error log.
It seems like the file permission of upconfig.json are not correct when copying the file to the container KeycloakDevServicesProcessor
5766578 is the UID of my local user.
When using docker without rootless setup the Keycloak Devservice starts like expected.
Expected behavior
Keycloak Devservice should start in a rootless docker setup
Actual behavior
Keycloak Devservice does not start in a rootless docker setup
How to Reproduce?
No response
Output of
uname -a
orver
Ubuntu 22.04.1
Output of
java -version
openjdk 21.0.5
Quarkus version or git rev
3.17.8
Build tool (ie. output of
mvnw --version
orgradlew --version
)Gradle 8.9
Additional information
No response
The text was updated successfully, but these errors were encountered: