The error message indicates that sonar.projectKey is still not being recognized. This might be due to how the properties are being passed to the SonarQube scanner. Let's try passing the properties directly to the sonarsource/sonar-scanner-cli command instead of as environment variables.
Here’s the updated command with properties passed directly:
docker run \
--rm \
-e SONAR_HOST_URL="https://sonarqube.projectkoding.com" \
-v "/var/www/html/monitoring:/usr/src" \
sonarsource/sonar-scanner-cli \
-Dsonar.projectKey=Tester \
-Dsonar.host.url=https://sonarqube.projectkoding.com \
-Dsonar.login=sqp_48de32b326eeaf345390e340db67a6ba910333b5