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

Docker: Only switch user if the current user is root #7654

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

skylenet
Copy link
Contributor

One might be running the container without root (e.g. docker run --user youruser ... ), if that's the case you'll get an error like this when running su:

Password: su: Authentication failure

…nning as root

Signed-off-by: Rafael Matias <rafael@skyle.net>
Signed-off-by: Rafael Matias <rafael@skyle.net>
@fab-10 fab-10 enabled auto-merge (squash) September 23, 2024 09:25
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

Successfully merging this pull request may close these issues.

3 participants