If you have the error 'PermissionError: [Errno 13] Permission denied' when running a docker-compose you can quickly fix the problem as follows:

chmod 777 /var/run/docker.sock

It is a problem of permissions possibly due to some configuration or incorrect installation, but when it is required to have the quick solution this action is effective.