-
Notifications
You must be signed in to change notification settings - Fork 40.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
Document that buildpacks use non-root users for building container images and running containers #21122
Comments
Back to v2.2.6.RELEASE ...
|
The problem occurs when building an image and running via So it might be a problem of the new image-builder in the gradle-plugin?! |
2.2.6 (using
2.3.0 ->
|
What do you mean by « still »? Are you referring to an existing issue (in this case could you link to it?). |
Updated #21122 (comment) Hope the change is clear now... |
"still" means: there where some other issues, like These issues are close, so i hoped it's working now. |
Sample application Note:
|
#20167 looks like a different issue. Connectors couldn’t start because of a Tomcat configuration change. This stacktrace points to a user permission issue (binding to the 80 port is not allowed it seems for this user). Maybe the other build plugin has a different policy for the default user? Thanks for the sample we’ll look into it. |
Doing a diff against master shows my changes. |
Yes, changing port from 80 to 8080 solves the problem...
|
Images built with CNB-related system intentionally both build and run as non-root users as a security measure. There’s no real way to override those restrictions, nor would you want to, but instead you should make the changes necessary to run your application as a non-root users. AS @octopus-prime worked out, something as simple as changing the port is enough, and given how all Dockerimage running systems work, you can easily get the same behavior via port mapping ( |
Thanks very much, @nebhale. I'd like to make a note of this in our reference documentation. Is there some CNB documentation that we could link to? |
@wilkinsona Let me look into that for you. It's part of our sales pitch, tag line, and spec, but I don't think there's any user-facing documentation that says it. |
I think the related issue is fixed now and we have a link to point users to https://buildpacks.io/docs/reference/spec/platform-api/#users |
Version 2.3.0 still causes "Unable to start embedded Tomcat server" errors.
Used for test:
v2.3.0.BUILD-SNAPSHOT
The text was updated successfully, but these errors were encountered: