Running CollectD as a container
Dockerfile
1FROM ubuntu:18.04
2RUN apt update
3RUN apt-get --no-install-recommends install collectd -y
4RUN apt install -y python-pip
5RUN pip install collectd-gnocchi
Running the container
1docker run -it --net=host --privileged -v:collectd.conf: /etc/collectd/collectd.conf collectDContainerImage collectd -C /etc/collectd/collectd.conf -f