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

Would it be possible to change this Dockerfile so an unprivileged user is used? #22

Open
PhilipMay opened this issue Jun 9, 2022 · 2 comments
Labels
question Further information is requested

Comments

@PhilipMay
Copy link
Collaborator

ENTRYPOINT "./smartprom.py"

@PhilipMay PhilipMay changed the title Would it be possible to change this Dockerfile so a unprivileged user is used? Would it be possible to change this Dockerfile so an unprivileged user is used? Jun 9, 2022
@PhilipMay
Copy link
Collaborator Author

Well... I think smartctl can not be used as non root user - right?

@ngosang
Copy link
Collaborator

ngosang commented Jul 27, 2022

I think "privileged" is required, but we can launch the Python code with non-root user.
You can look for inspiration here => https://github.com/prometheus-community/smartctl_exporter
PRs are welcome.

@ngosang ngosang added the question Further information is requested label Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants