Title: sonar-scanner-cli:5 Docker image fails on ARM64 (aarch64) — container exits immediately
Versions
- SonarQube: SonarCloud
- Scanner: sonarsource/sonar-scanner-cli:5 (Docker)
- Jenkins Sonar Plugin: SonarQube Scanner for Jenkins (via withSonarQubeEnv)
- Host: AWS EC2 Graviton3 (m7g instance, aarch64)
Deployment
SonarCloud (cloud-hosted). Scanner runs as a Docker container launched by the Jenkins pipeline via the docker.image(…).inside {} pattern on an ARM64 Jenkins worker node.
What I’m trying to achieve
Run sonar-scanner-cli:5 as a Docker container on an ARM64 (aarch64) AWS Graviton Jenkins agent as part of a CI pipeline.
What happened
The image pulls successfully from Docker Hub (Docker resolves the :5 tag), but the container exits immediately without running. Jenkins then reports:
ERROR: Build Failed
java.io.IOException: Failed to run top ‘’.
Error: Error response from daemon: container is not running
And SonarQube quality gate check reports:
WARN: Unable to locate ‘report-task.txt’ in the workspace. Did the SonarScanner succeed?
What I’ve tried
- Confirmed the issue is architecture-specific: the same pipeline runs successfully on x86_64 Jenkins agents
- Confirmed Docker pulls the image without error on the ARM64 host — the failure is at container startup (exec format error / wrong arch binary)
- Checked Docker Hub: sonarsource/sonar-scanner-cli:5 does not appear to publish an linux/arm64 manifest entry
Question
Is there an official ARM64-compatible sonar-scanner-cli image or tag? If not, is there a recommended workaround (e.g., a specific tag that includes an arm64 manifest, or an alternative installation method for ARM64 agents)?