Hi,
I am trying to restart a docker container (3rd party, not OH) from the OH (via Google Assistant switch and executeCommandLine).
I looked here:
https://community.openhab.org/t/solved-restart-oh-docker-container-with-oh-switch-item/103511
and modified my sudoers as:
openhab ALL=(ALL) NOPASSWD: /usr/bin/docker
openhab ALL=(ALL) NOPASSWD: /var/run/docker.sock
I am running OH3 on rPi4, 8GB RAM
When I try to execute the restart container command from the terminal as openhab user I get this:
openhab@openHABianDevice:/home/openhabian$ docker container restart openhabian_inkbird_1
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/openhabian_inkbird_1/restart: dial unix /var/run/docker.sock: connect: permission denied
What should be entered in the sudoers file?
Thanks