collectd: Bind mount / into container
Even with *collectd* configured to report filesystem usage by device, it still only reports filesystems that are mounted (in its namespace). Thus, in order for it to report filesystems like `/boot`, these need to be mounted in the container.master
parent
d3338a125b
commit
714df85183
|
@ -6,6 +6,7 @@ Wants=network.target
|
||||||
|
|
||||||
[Container]
|
[Container]
|
||||||
Image=git.pyrocufflink.net/containerimages/collectd:latest
|
Image=git.pyrocufflink.net/containerimages/collectd:latest
|
||||||
|
Volume=/host:/host
|
||||||
Volume=/etc/collectd.d:/etc/collectd.d:ro
|
Volume=/etc/collectd.d:/etc/collectd.d:ro
|
||||||
Volume=/run:/run:rw
|
Volume=/run:/run:rw
|
||||||
Tmpfs=/tmp
|
Tmpfs=/tmp
|
||||||
|
|
Loading…
Reference in New Issue