Skip to content
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

container couldn't be running with the uid/gid different than 999 #832

Open
ochekhi opened this issue Dec 4, 2024 · 0 comments
Open

container couldn't be running with the uid/gid different than 999 #832

ochekhi opened this issue Dec 4, 2024 · 0 comments

Comments

@ochekhi
Copy link

ochekhi commented Dec 4, 2024

Project board link

Greetings,

I am facing an issue with starting a container using a different user than UID 999. Although the securityContext allows setting any userID, the container won't be created because docker-entrypoint.sh is located under /home/cassandra with restricted permissions only for the cassandra user (UID 999). Additionally, some environment variables are defined only for the cassandra user in the Dockerfile.

Should it be supported to run Medusa containers with any UID/GID?

medusa:
  securityContext:
    runAsGroup: 1000940000
    runAsNonRoot: true
    runAsUser: 1000940000

Error: container create failed: time="2024-12-04T12:27:18+02:00" level=error msg="runc create failed: unable to start container process: exec: \"/home/cassandra/docker-entrypoint.sh\": stat /home/cassandra/docker-entrypoint.sh: permission denied"

┆Issue is synchronized with this Jira Story by Unito
┆Issue Number: MED-114

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant