1、问题:
Unable to connect to unix:///var/run/docker.sock (Permission denied) from PHP code
解决方法:
Make sure /var/run has r and x privilege for all users and docker.sock and mode of docker.sock is 0777
/var/run
r
x
docker.sock
0777