echo '==> Format codebase'
+++ whoami
++ id -u anshul
docker run --rm --user=1000 -e LOG_LEVEL=INFO -v /home/anshul/my_project/project-title/backend:/github/workspace plone/code-quality:2.1 format
docker: 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/create": dial unix /var/run/docker.sock: connect: permission denied.
See 'docker run --help'.
make: *** [Makefile:118: format] Error 126
ERROR: Stopping generation because post_gen_project hook script didn't exit successfully
Try checking the permissions of the Docker daemon socket by running:
ls -l /var/run/docker.sock
The output should show that the socket is owned by the "docker" group and has read and write permissions for the group.
If the permissions are incorrect, you can adjust them with the following command: