Sonarcube how to install the sonarscanner for maven?

I want to use Sonarcube for code analysis for a maven project, but I’m not sure on how to install the sonarscanner for maven.
I’ve setup the docker image and I’m currently at this step:
enter image description here

But I have no idea what they mean by execute the scanner for maven form your computer or where to execute these commandlines and the documentation is rather vague to me. Can anyone help me out with this?

Source: Docker Questions