ualex73 / monitor_docker

Monitor Docker containers from Home Assistant
Apache License 2.0
268 stars 34 forks source link

Permission denied with home assistant that is not a Docker #40

Closed leranp closed 3 years ago

leranp commented 3 years ago

aiodocker.exceptions.DockerError: DockerError(900, 'Cannot connect to Docker Engine via unix:///run/docker.sock [Permission denied]')

the home assistant is in virtual environment ,tried to add homeassistant user to ducker group , tried to change the location of the docker.sock to unix:///run/docker.sock, not luck, can someone help me?

ualex73 commented 3 years ago

Strange, adding your user to "docker" group should have worked. You logout/login (or even reboot), before you tried?

usermod -a -G docker <user>
reboot

That should really do it

leranp commented 3 years ago

Thanks, reboot did the work