Got permission denied while trying to connect to the Docker daemon socket

Hi @Aritra666B,
Ah, my apologies I should have asked if you were using docker. Can you send along your docker-compose?

Did you mount the socket to the container? Here is the raw docker run command:

 docker run -d --name=telegraf \
      --net=influxdb \
      -v /var/run/docker.sock:/var/run/docker.sock \
      -v $PWD/telegraf.conf:/etc/telegraf/telegraf.conf:ro \
      telegraf