Custom image with .NET SDK 9, JDK 17, and dotnet-sonar scanner preinstalled
10K+
A production-ready, multi-architecture Docker image for running SonarQube analysis on .NET projects, preloaded with all required tooling to eliminate repetitive setup in CI pipelines.
This image is designed for GitHub Actions (container jobs) and self-hosted runners, providing faster, deterministic Sonar analysis with minimal workflow complexity.
Typical Sonar workflows repeatedly:
This image bakes all of that in, resulting in:
chown / chmod workarounds| Architecture | Supported |
|---|---|
| amd64 | β |
| arm64 | β |
Built using Docker Buildx and published as a single multi-platform manifest.
This project is distributed under the MIT License.
The image also contains software from Microsoft, the OpenJDK project, and SonarSource. Each component remains subject to its own license and notices.
Refer to the upstream projects for detailed license information.
The image runs as the non-root sonar user (UID 1001). A mounted workspace may have ownership or permission settings that prevent writes.
If your runner has this issue, explicitly run the container as root:
docker run --rm --user 0 \
-v "$PWD:/workspace" \
-w /workspace \
aloknecessary/sonar-dotnet-v9.0:latest
For a GitHub Actions container job:
container:
image: aloknecessary/sonar-dotnet-v9.0:latest
options: --user 0
Content type
Image
Digest
sha256:3d6a94dbcβ¦
Size
542.9 MB
Last updated
21 days ago
docker pull aloknecessary/sonar-dotnet-v9.0