Seeing error in telegraf-ds pod after installing telegraf-ds as non root


I have installed the telegraf-ds using helm and telegraf was able to send the metrics when run as root. Then i edited the telegraf-ds and added the security context to run as non root user. Telegraf ds running fine but i see below error:

2021-10-13T06:20:50Z E! [inputs.docker] Error in plugin: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get “http://%2Fvar%2Frun%2Fdocker.sock/v1.21/info”: dial unix /var/run/docker.sock: connect: permission denied

could anyone assist on this ?

I need to run telegraf container as non root due to security issues. So can we run telegarf-ds as non root ?

Any help help would be much appreciated.


Hello @Harpreet_Singh,
Welcome! I don’t know exactly but I found this:

Have you tried it?