-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Free database container requires allowPrivilegeEscalation: true in order to run #2948
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
Comments
We are not seeing this issue? Which K8s distribution is this? Is this working fine on dockers / podman? |
I'm able to reliably recreate this by using RKE2 v1.31.1 and AKS v1.31.5 using the above manifest. A similar, but not exactly the same error can be recreated using docker compose, by specifying This error can be seen in docker as:
I'm assuming this is the result of this line or the line above it. Do we have any way around this? |
Hi, I am hitting the same issue:
In my case setting allowPrivilegeEscalation dooes not help either. Starting with podman from user "root" it fails with the same error. Starting with podman from an end-user on my host it works fine. Thanks |
Can we try by removing runAsNonRoot: true I think this is preventing the su to root for certain operations needed in the container |
Hi, I don't know if those may be two separate issues or the same one. But I believe both may be the same. Adding this example in case it helps, because as commented with podman it fails with the same error. Here is the error and file used: Error:
And as you can see the file used is very simple:
Thanks |
That is the core of the issue: the container needs to be able to run with |
When running
container-registry.oracle.com/database/free:23.7.0.0-amd64
on Kubernetes, with the following manifest:The container fails to start with the following error:
Password: su: Authentication failure
.Removing
allowPrivilegeEscalation: false
allows startup to complete, however this is a non-viable solution in the environment this image needs to run int. Is there anyway around the requirement for privilege escalation?The text was updated successfully, but these errors were encountered: