Scan docker images

Can SonarQube scan Docker images? The docker images were deployed in the Kubernetes through the GitHub actions through the workflow. Can we add SonarQube scanner to the images before there were deployed ?

SonarQube does not scan containers, however scanning DockerFiles for security misconfigurations is on the horizon.

We are using 9.9 LTS. Can you explain how to scan the dockerfile in Azure DevOps? Do we need to add any special parameters?