prometheus-smartctl icon indicating copy to clipboard operation
prometheus-smartctl copied to clipboard

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

Open PhilipMay opened this issue 2 years ago • 2 comments

https://github.com/matusnovak/prometheus-smartctl/blob/3fbd7bbb06b466bfeb7c1eb99aec45a5951f1458/Dockerfile#L12

PhilipMay avatar Jun 09 '22 13:06 PhilipMay

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

PhilipMay avatar Jun 09 '22 14:06 PhilipMay

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 avatar Jul 27 '22 21:07 ngosang