Custom image with .NET SDK 10, JDK 17, and dotnet-sonar scanner preinstalled
2.1K
Optimized Docker image with SonarScanner for .NET preinstalled, built on the official .NET 10 SDK (GA) image.
This image is intended for CI/CD usage (GitHub Actions, Azure DevOps, GitLab CI) to run SonarQube or SonarCloud analysis on .NET projects.
sonar, UID 1001)mcr.microsoft.com/dotnet/sdk:10.0| Architecture | Supported |
|---|---|
| amd64 | ✅ |
| arm64 | ✅ |
Built using Docker Buildx and published as a single multi-platform manifest.
| Image tag | .NET SDK | SonarScanner for .NET |
|---|---|---|
6.2.0 | 10.0 | 6.2.0 |
11.3.0 | 10.0 | 11.3.0 |
latest | 10.0 | 11.3.0 |
Please go to GitHub repo for usage details.
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-v10.0:latest
For a GitHub Actions container job:
container:
image: aloknecessary/sonar-dotnet-v10.0:latest
options: --user 0
Content type
Image
Digest
sha256:7b42326fd…
Size
337.6 MB
Last updated
21 days ago
docker pull aloknecessary/sonar-dotnet-v10.0