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


priate

Recommended Posts

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.

 

 2124895021_ScreenShot2020-10-08at1_10_26PM.thumb.png.3c6b3abb250a500a3ee4b35fcda7b04b.png

Link to comment
  • 2 weeks later...
  • 1 year later...
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?

Link to comment
  • 3 weeks later...

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:

image.thumb.png.5b5f279216684c50b0713d5a4aa102a3.png

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!

  • Thanks 1
Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.