Hello @nbislicense,
Welcome to the SonarSource community.
First of all I would like to make it clear that the SonarQube scanner CLI docker image is a beta. Hope you understand this.
This is just a guess but I believe that you may have not mounted the /usr/src
directory properly in the docker image so that it can be written by the scanner. The recommended solution is to create a docker volume that you’ll mount to a given directory in the container, and set the scanner home directory (where it’ll store its temp data, cache etc…) to that volume. This should be something like:
docker volume create cache-vol
docker run -v "$(pwd):/usr/src" \
-v cache-vol:/home/scanner-cli -e "SONAR_USER_HOME=/home/scanner-cli" \
--network=host sonarsource/sonar-scanner-cli
Let me know if that works.
Regards