Sonarscanner - docker - properties

Tool: SonarScanner 4.6.2.2472 (problem is for older version as well)
Problem: Using docker - regardless of instructions provided in documentations: https://docs.sonarqube.org/latest/analysis/scan/sonarscanner/ (e.g. put sonar-project.properties in root directory).
Scanning fails with such error: You must define the following mandatory properties for 'Unknown': sonar.projectKey
Problem is because properties file is ignored: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties

#bug:fault

Hi,

I’m a little confused.

Do you believe this is about sonar-project.properties (in project root) being ignored or about sonar-scanner.properties being ignored?

Could you provide the analysis log?

 
Ann