October 8, 20205 yr Hey guys i'm trying to get this docker image work sabrsorensen/alpine-plex_autoscan. Everything works but when the image tries to connect to the docker socket it gets denied. `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.40/containers/Plex-Media-Server/json: dial unix /var/run/docker.sock: connect: permission denied'` I have uploaded a screenshot of my template. I have not modified any groups or users. Everything is as is from a fresh unraid install. Please let me know what I am doing wrong thank you.
November 5, 20214 yr Running into this issue today myself. Did you ever figure this out? My error is coming from Telegraf when connecting to the Docker service to get the CPU and memory stats.
November 5, 20214 yr 17 hours ago, Andiroo2 said: Running into this issue today myself. Did you ever figure this out? My error is coming from Telegraf when connecting to the Docker service to get the CPU and memory stats. Restarting the server fixed it for me.
November 10, 20214 yr On 11/4/2021 at 6:20 PM, Andiroo2 said: Running into this issue today myself. Did you ever figure this out? My error is coming from Telegraf when connecting to the Docker service to get the CPU and memory stats. On 11/5/2021 at 12:06 PM, Andiroo2 said: Restarting the server fixed it for me. I'm having this same issue as of today. A restart did not fix it. I've tried reinstalling telegraf. Still no dice. Anyone with this issue?
November 26, 20214 yr I had the same errors and found the comment in the below link about adding " --user telegraf:$(stat -c '%g' /var/run/docker.sock) " to the container parameters worked for me. https://github.com/influxdata/telegraf/issues/10050
November 29, 20214 yr Sorry for the noob question but do you add this as a variable? Not sure where to put it. TIA
December 3, 20214 yr when you edit the docker, click the advanced switch in the upper right. Then when you edit the docker, click the advanced view switch in the upper right. Next, you paste that line above in to the Extra Parameters spot: Click Apply, and you won't see the error any longer. I found this thread just now as I too noticed the error when looking at logs, and tried this, and it works. Cheers!
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.