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

Don't run Docker image as root #182

Open
alexanderadam opened this issue Jun 4, 2019 · 2 comments
Open

Don't run Docker image as root #182

alexanderadam opened this issue Jun 4, 2019 · 2 comments

Comments

@alexanderadam
Copy link

alexanderadam commented Jun 4, 2019

It would be nice if the Dockerfile would create a non privileged user and switch to it using the Docker USER directive instead of using root.

For example like described here.

You might also take this advice from the official Docker documentation:

If a service can run without privileges, use USER to change to a non-root user.

PS: Thank you for Docker registry manager!

@ticpu
Copy link

ticpu commented May 27, 2020

You can enforce the same thing by using MANAGER_PORT=8080 and adding --cap-drop ALL
That way, you don't depend on the Dockerfile to do the right thing.

@alexanderadam
Copy link
Author

Nice, I didn't know about that. A more default image would be better nevertheless. 😉

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

2 participants