-
Notifications
You must be signed in to change notification settings - Fork 32
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
Dockerfile: define numeric user to run unprivileged #177
Dockerfile: define numeric user to run unprivileged #177
Conversation
/assign @marquiz |
7d04399
to
7d7235a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx @ArangoGutierrez for the fix
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ArangoGutierrez, marquiz The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This patch fix error:
Warning Failed 65s (x7 over 2m21s) kubelet Error: container has runAsNonRoot and image has non-numeric user (nfd-operator), cannot verify user is non-root (pod: "node-feature-discovery-operator-controller-manager-6ccbd689t98z_node-feature-discovery-operator(89328c77-19c4-420d-8e09-61fca475630e)", container: manager)
By moving from named user
nfd-operator
to a numeric value userUSER 65534:65534
Extra: define the generated
make build
binary path in gitignore to prevent future helm folders with same name to be ignored by git