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:
parent
807f15b931
commit
7ac850853d
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue