-
Notifications
You must be signed in to change notification settings - Fork 424
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
3.3.9 Containers fail to run with non-root user #14
Comments
Just add |
The upstream maven Docker image copies some files into the Maven config directory during container startup, to fix some issues for images using Maven at container runtime (see carlossg/docker-maven#11). This broke startup for child images that do not run as root user (we're adding a basex user). The same issue was described in carlossg/docker-maven#14. Resolves BaseXdb#1345, replaces BaseXdb#1346.
Is not acceptable as you have broken the ability for me to use this image within the Cloudbees Docker Pipeline plugin. See #16. I am very disappointed that this image, which used to work, has ceased to be useable within Jenkins. Yes I could go back and modify all of my Jenkinsfiles but that is an unacceptable level of breakage in my opinion. |
see #16 (comment)
|
When specifying a non-root user you get an error:
$ docker run -u 1000 -ti index.docker.io/maven:3.3.9-jdk-8 bash touch: cannot touch ‘/root/.m2/copy_reference_file.log’: Permission denied Can not write to /root/.m2/copy_reference_file.log. Wrong volume permissions?
In the main README it gives example about running as a non-root user but now fails with the addition/fix of issue #11 [https:/carlossg/docker-maven/commit/363ef271b86142d151f742fefa46d9d13bb656e6].
In the meantime I went back to maven:3.3.3 containers as it doesn't have this fix yet.
Thanks,
Art
The text was updated successfully, but these errors were encountered: