1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

Plugin docker_: reduce permissions of plugin

root privileges are not required for sending queries to the docker socket.
Instead the group "docker" should be sufficient.

Additionally replace /var/run with /run (following updates of FHS).
This commit is contained in:
Lars Kruse 2021-02-23 00:10:10 +01:00
parent 807f15b931
commit 7ac850853d

View file

@ -59,12 +59,15 @@ Would exclude all containers with the word "runner" in the name.
=over 2
[docker_*]
user root
env.DOCKER_HOST unix://var/run/docker.sock
group docker
env.DOCKER_HOST unix://run/docker.sock
env.EXCLUDE_CONTAINER_NAME regexp
=back
You may need to pick a different group depending on the name schema of your
distribution. Or maybe use "user root", if nothing else works.
=head1 AUTHORS
This section has been reverse-engineered from git logs