sonarqube

arm64v8/sonarqube Docker Image

SonarQube官方镜像,这是一款用于代码质量和安全的代码分析工具。

下载次数: 0状态:社区镜像维护者:arm64v8仓库类型:镜像最近更新:
下载命令
点击查看

Note: this is the "per-architecture" repository for the arm64v8 builds of https://hub.docker.com/_/sonarqube -- for more information, see https://github.com/docker-library/official-images#architectures-other-than-amd64 and https://github.com/docker-library/faq#an-images-source-changed-in-git-now-what.

Quick reference

  • Maintained by:
    https://github.com/SonarSource/docker-sonarqube

  • Where to get help:
    https://community.sonarsource.com/tags/c/help/sq/docker, https://forums.docker.com/, https://blog.docker.com/2016/11/introducing-docker-community-directory-docker-community-slack/, or https://stackoverflow.com/search?tab=newest&q=docker

Supported tags and respective Dockerfile links

  • https://github.com/SonarSource/docker-sonarqube/blob/d88f780f20fe775e6044caa7695d6176a13da294/commercial-editions/developer/Dockerfile

  • https://github.com/SonarSource/docker-sonarqube/blob/d88f780f20fe775e6044caa7695d6176a13da294/commercial-editions/enterprise/Dockerfile

  • https://github.com/SonarSource/docker-sonarqube/blob/d88f780f20fe775e6044caa7695d6176a13da294/commercial-editions/datacenter/app/Dockerfile

  • https://github.com/SonarSource/docker-sonarqube/blob/d88f780f20fe775e6044caa7695d6176a13da294/commercial-editions/datacenter/search/Dockerfile

  • https://github.com/SonarSource/docker-sonarqube/blob/74e38c75d9dc596a1f426eaba9b68e83ceed2e2a/commercial-editions/developer/Dockerfile

  • https://github.com/SonarSource/docker-sonarqube/blob/74e38c75d9dc596a1f426eaba9b68e83ceed2e2a/commercial-editions/enterprise/Dockerfile

  • https://github.com/SonarSource/docker-sonarqube/blob/74e38c75d9dc596a1f426eaba9b68e83ceed2e2a/commercial-editions/datacenter/app/Dockerfile

  • https://github.com/SonarSource/docker-sonarqube/blob/74e38c75d9dc596a1f426eaba9b68e83ceed2e2a/commercial-editions/datacenter/search/Dockerfile

  • https://github.com/SonarSource/docker-sonarqube/blob/fd7aadca9a77867ff9a4e2195ff67d3b9f2a946b/commercial-editions/developer/Dockerfile

  • https://github.com/SonarSource/docker-sonarqube/blob/fd7aadca9a77867ff9a4e2195ff67d3b9f2a946b/commercial-editions/enterprise/Dockerfile

  • https://github.com/SonarSource/docker-sonarqube/blob/fd7aadca9a77867ff9a4e2195ff67d3b9f2a946b/commercial-editions/datacenter/app/Dockerfile

  • https://github.com/SonarSource/docker-sonarqube/blob/fd7aadca9a77867ff9a4e2195ff67d3b9f2a946b/commercial-editions/datacenter/search/Dockerfile

  • https://github.com/SonarSource/docker-sonarqube/blob/fa565e45fe6569f4a0326d2d6731e847ceae15c4/community-build/Dockerfile

Quick reference (cont.)

  • Where to file issues:
    https://github.com/SonarSource/docker-sonarqube/issues?q=is:issue+is:pr

  • Supported architectures: (https://github.com/docker-library/official-images#architectures-other-than-amd64)
    https://hub.docker.com/r/amd64/sonarqube/, https://hub.docker.com/r/arm64v8/sonarqube/

  • Published image artifact details:
    https://github.com/docker-library/repo-info/blob/master/repos/sonarqube (https://github.com/docker-library/repo-info/commits/master/repos/sonarqube)
    (image metadata, transfer size, etc)

  • Image updates:
    https://github.com/docker-library/official-images/issues?q=label%3Alibrary%2Fsonarqube
    https://github.com/docker-library/official-images/blob/master/library/sonarqube (https://github.com/docker-library/official-images/commits/master/library/sonarqube)

  • Source of this description:
    https://github.com/docker-library/docs/tree/master/sonarqube (https://github.com/docker-library/docs/commits/master/sonarqube)

What is sonarqube?

sonarqube Docker repository stores the official Sonar images for SonarQube Server and SonarQube Community Build.

https://www.sonarsource.com/products/sonarqube/ (formerly SonarQube) is an on-premise analysis tool designed to detect quality and security issues in 30+ languages, frameworks, and IaC platforms. The solution also provides fix recommendations leveraging AI with Sonar's AI CodeFix capability. By integrating directly with your CI pipeline or on one of the supported DevOps platforms, your code is checked against an extensive set of rules that cover many attributes of code, such as maintainability, reliability, and security issues on each merge/pull request.

https://www.sonarsource.com/open-source-editions/sonarqube-community-edition/ (formerly SonarQube Community) is Sonar's self-managed free offering, released on a monthly schedule. It includes the latest core capabilities available in open source, providing essential features such as bug detection, identification of code smells, and basic security issue analysis across 21 programming languages and frameworks. For advanced security analysis, enterprise-grade integrations, and scalability features, the commercial version, SonarQube Server, is available.

How to use this image

Here, you'll find the Docker images for the SonarQube Server (Developer Edition, Enterprise Edition, and Data Center Edition), as well as for SonarQube Community Build.

Docker Host Requirements

Because SonarQube uses an embedded Elasticsearch, make sure that your Docker host configuration complies with the https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker-cli-run-prod-mode and https://www.elastic.co/guide/en/elasticsearch/reference/current/file-descriptors.html.

For example, on Linux, you can set the recommended values for the current session by running the following commands as root on the host:

console
sysctl -w vm.max_map_count=524288
sysctl -w fs.file-max=131072
ulimit -n 131072
ulimit -u 8192

Demo

To quickly run a demo instance, see Using Docker on the https://docs.sonarsource.com/sonarqube-server/latest/try-out-sonarqube/ page. When you are ready to move to a more sustainable setup, take some time to read the Installation and Configuration sections below.

Installation

Multi-platform support: Starting from SonarQube 9.9, the docker images support running both on amd64 architecture and arm64-based Apple Silicon.

For installation instructions, see Installing the Server from the Docker Image on the https://docs.sonarsource.com/sonarqube-server/latest/setup-and-upgrade/install-the-server/installing-sonarqube-from-docker/ page.

To run a cluster with the SonarQube Server Data Center Edition, please refer to Installing SonarQube Server from the Docker Image on the https://docs.sonarsource.com/sonarqube-server/latest/setup-and-upgrade/install-the-server-as-a-cluster/ page.

Long-Term Active (LTA) versions

https://www.sonarsource.com/products/sonarqube/downloads/lta/ refers to the version of SonarQube Server that will stay active for a longer period of time. Currently, 2026.5 is the latest LTA version and should be used when LTA version is preferred. To install the latest LTA, you can pull one of the 2026.5-lta-<edition> tags.

Configuration

Port binding

By default, the server running within the container will listen on port 9000. You can expose the container port 9000 to the host port 9000 with the -p 9000:9000 argument to docker run, like the command below:

console
docker run --name sonarqube-custom -p 9000:9000 arm64v8/sonarqube:community

You can then browse to http://localhost:9000 or http://host-ip:9000 in your web browser to access the web interface.

Database

By default, the image will use an embedded H2 database that is not suited for production.

Warning: Only a single instance of SonarQube Server or SonarQube Community Build can connect to a database schema. If you're using a Docker Swarm or Kubernetes, make sure that multiple instances are never running on the same database schema simultaneously. This will cause the SonarQube to behave unpredictably, and data will be corrupted. There is no safeguard, as described on https://jira.sonarsource.com/browse/SONAR-***. The SonarQube Server Data Center Edition has the same limitation in that only one cluster can connect to one database schema at the same time.

Set up a database by following the https://docs.sonarsource.com/sonarqube-server/latest/setup-and-upgrade/install-the-server/installing-the-database/ section.

Use volumes

We recommend creating volumes for the following directories:

  • /opt/sonarqube/data: data files, such as the embedded H2 database and Elasticsearch indexes
  • /opt/sonarqube/logs: contains SonarQube logs about access, web process, CE process, Elasticsearch logs
  • /opt/sonarqube/extensions: for 3rd party plugins

Beginning with SonarQube Server 2026.1, the use of the Java Attach API for ElasticSearch 8.x initialization creates socket files in the hardcoded and unchangeable path /tmp/.java_pid<PID>. It is essential to ensure that SonarQube Server processes have both read and write access to the /tmp/ folder to function correctly.

Warning: You cannot use the same volumes on multiple instances of SonarQube.

Upgrading

For upgrade instructions, see Upgrading from the Docker Image on the https://docs.sonarsource.com/sonarqube-server/latest/server-upgrade-and-maintenance/upgrade/upgrade/ page.

Advanced configuration

Customized image

In some environments, it may make more sense to prepare a custom image containing your configuration. A Dockerfile to achieve this may be as simple as:

dockerfile
FROM arm64v8/sonarqube:community
COPY sonar-custom-plugin-1.0.jar /opt/sonarqube/extensions/

You could then build and try the image with something like:

console
$ docker build --tag=sonarqube-custom .
$ docker run -ti sonarqube-custom

Avoid hard termination

The instance will stop gracefully, waiting for any tasks in progress to finish. Waiting for in-progress tasks to finish can take a large amount of time, which the docker does not expect by default when stopping. To avoid having the instance killed by the Docker daemon after 10 seconds, it is best to configure a timeout to stop the container with --stop-timeout. For example:

console
docker run --stop-timeout 3600 arm64v8/sonarqube

Administration

Information about administering your instance of SonarQube Server begins https://docs.sonarsource.com/sonarqube-server/latest/instance-administration/overview/.

License

SonarQube Community Build is licensed under http://www.gnu.org/licenses/lgpl.txt. SonarQube Server Developer, Enterprise, and Data Center Editions are licensed under https://www.sonarsource.com/docs/sonarsource_terms_and_conditions.pdf.

As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).

Some additional license information which was able to be auto-detected might be found in https://github.com/docker-library/repo-info/tree/master/repos/sonarqube.

As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.

更多相关 Docker 镜像与资源

以下是 arm64v8/sonarqube 相关的常用 Docker 镜像,适用于 不同场景 等不同场景:

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 sonarqube 镜像标签

docker pull docker.xuanyuan.run/arm64v8/sonarqube:<标签>

DockerHub 原生拉取命令

docker pull arm64v8/sonarqube:<标签>
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载在线技术支持专业版保障服务可用付费会员免广告