Sonar scanner fails to create temp files in Gitlab

As this thread becomes really long and the last problem has nothing to do with the initial one how about starting a new thread?

It used to work with this image: once I switched to official one sonarsource/sonar-scanner-cli:latest I keep getting more and more errors.

I cannot share the source.