If you read carefully the doc page "Analyzing with SonarQube Runner", you can read:
Run the following command from the project base directory to launch the analysis:
The most important part is "from the project base directory". This should answer your question.