Trying to run docker exec from php under Nginx I get the following error:
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/konfetki_db_1/json: dial unix /var/run/docker.sock: connect: permission denied
This works from command line but it says permission denied
while I'm trying to run from php under nginx with www-data instead of root.
Is there any way to run this?