Hey everyone.
I’m currently in the process of setting up Telegraf, InfluxDB and Grafana within Docker using Portainer.
Everything is working fine, except for Telegraf which is causing me some issues.
This is my docker-compose file for it
services:
telegraf:
hostname: raspberrypi3b
container_name: git_telegraf
image: telegraf:latest
volumes:
- /home/pi/telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- /usr/bin/vcgencmd:/usr/bin/vcgencmd
- /usr/lib/arm-linux-gnueabihf/libvcos.so.0:/usr/lib/arm-linux-gnueabihf/libvcos.so.0
- /usr/lib/arm-linux-gnueabihf/libvchiq_arm.so.0:/usr/lib/arm-linux-gnueabihf/libvchiq_arm.so.0
devices:
- "/dev/vchiq"
ports:
- '8125:8125/udp'
The issues is that I keep getting VCHI initialization failed and so far the only way of fixing this is to connect to the docker container and execute the following command: chmod 766 /dev/vchiq
So it seems that it’s some sort of permission issue but I have no clue what to do against it at this point.
I’ve tried the following things by adding them to the docker-compose file:
user: root
privileged: true
group_add:
- video
None of which have worked at all.
Does anybody have any suggestions? I would greatly appreciate it.