专属域名
文档搜索
轩辕助手
Run助手
邀请有礼
返回顶部
快速返回页面顶部
收起
收起工具栏

sonarqube Docker 镜像 - 轩辕镜像

sonarqube
library/sonarqube
SonarQube的官方镜像是一款专注于代码质量与安全的代码分析工具,其核心功能包括对代码进行全面扫描、精准检测潜在缺陷、有效识别安全漏洞及科学评估代码质量指标,能帮助开发团队在软件开发流程中及时发现并修复问题,从而显著提升软件产品的可靠性与安全性,是开发过程中保障代码质量和安全的重要工具。
2543 收藏0 次下载activelibrary镜像
🚀专业版镜像服务,面向生产环境设计
版本下载
🚀专业版镜像服务,面向生产环境设计

Quick reference

  • Maintained by:
    SonarSource

  • Where to get help:
    the SonarSource Community forum, the Docker Community Forums, the Docker Community Slack, or Stack Overflow

Supported tags and respective Dockerfile links

  • 2025.6.1-developer, 2025.6-developer, developer

  • 2025.6.1-enterprise, 2025.6-enterprise, enterprise

  • 2025.6.1-datacenter-app, 2025.6-datacenter-app, datacenter-app

  • 2025.6.1-datacenter-search, 2025.6-datacenter-search, datacenter-search

  • 2025.4.4-developer, 2025.4-developer, 2025.4-lta-developer

  • 2025.4.4-enterprise, 2025.4-enterprise, 2025.4-lta-enterprise

  • 2025.4.4-datacenter-app, 2025.4-datacenter-app, 2025.4-lta-datacenter-app

  • 2025.4.4-datacenter-search, 2025.4-datacenter-search, 2025.4-lta-datacenter-search

  • 2025.1.5-developer, 2025.1-developer, 2025-lta-developer

  • 2025.1.5-enterprise, 2025.1-enterprise, 2025-lta-enterprise

  • 2025.1.5-datacenter-app, 2025.1-datacenter-app, 2025-lta-datacenter-app

  • 2025.1.5-datacenter-search, 2025.1-datacenter-search, 2025-lta-datacenter-search

  • 26.1.0.***-community, community, latest

Quick reference (cont.)

  • Where to file issues:
    [***]

  • Supported architectures: (more info)
    amd64, arm64v8

  • Published image artifact details:
    repo-info repo's repos/sonarqube/ directory (history)
    (image metadata, transfer size, etc)

  • Image updates:
    official-images repo's library/sonarqube label
    official-images repo's library/sonarqube file (history)

  • Source of this description:
    docs repo's sonarqube/ directory (history)

What is sonarqube?

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

SonarQube Server (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.

SonarQube Community Build (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 Elasticsearch production mode requirements and File Descriptors configuration.

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=***
ulimit -n ***
ulimit -u 8192

Demo

To quickly run a demo instance, see Using Docker on the 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 (M1).

For installation instructions, see Installing the Server from the Docker Image on the Install the Server page.

To run a cluster with the SonarQube Server Data Center Edition, please refer to Installing SonarQube Server from the Docker Image on the Install the Server as a Cluster page.

Long-Term Active (LTA) versions

LTA refers to the version of SonarQube Server that will stay active for a longer period of time. Currently, 2025.4 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 2025.4-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 sonarqube:community

You can then browse to http://localhost:9000 or [***] 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 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 "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

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

Upgrading

For upgrade instructions, see Upgrading from the Docker Image on the Upgrade the Server 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 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 sonarqube

Administration

Information about administering your instance of SonarQube Server begins here.

License

SonarQube Community Build is licensed under GNU Lesser General Public License, Version 3.0. SonarQube Server Developer, Enterprise, and Data Center Editions are licensed under SonarSource Terms and Condition.

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 the repo-info repository's sonarqube/ directory.

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.

查看更多 sonarqube 相关镜像 →
bitnami/sonarqube logo
bitnami/sonarqube
by VMware
认证
Bitnami安全镜像,用于部署SonarQube代码质量与安全分析工具,提供安全加固的生产环境支持。
341M+ pulls
上次更新:4 个月前
bitnamicharts/sonarqube logo
bitnamicharts/sonarqube
by VMware
认证
Bitnami提供的SonarQube(TM) Helm chart,用于在Kubernetes环境中简化代码质量管理平台的部署,支持代码分析、漏洞检测及质量监控。
1M+ pulls
上次更新:4 个月前
mcp/sonarqube logo
mcp/sonarqube
by mcp
认证
通过Web API与SonarQube Cloud、Server和Community版本交互,分析代码以识别质量和安全问题的MCP服务器。
1850K+ pulls
上次更新:6 天前
amd64/sonarqube logo
amd64/sonarqube
by amd64
SonarQube官方Docker镜像,用于代码质量和安全的代码分析工具,支持多种语言和平台,提供AI驱动的修复建议及CI/CD集成。
1100K+ pulls
上次更新:5 天前
adrianmusante/sonarqube logo
adrianmusante/sonarqube
by adrianmusante
基于SonarQube社区版的Docker镜像,包含额外功能和插件,如社区分支插件、无人值守迁移、健康检查工具及Gravatar支持,用于代码质量分析和技术债务管理。
410K+ pulls
上次更新:1 个月前
arm64v8/sonarqube logo
arm64v8/sonarqube
by arm64v8
SonarQube官方镜像,这是一款用于代码质量和安全的代码分析工具。
10K+ pulls
上次更新:5 天前

轩辕镜像配置手册

探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式

登录仓库拉取

通过 Docker 登录认证访问私有仓库

Linux

在 Linux 系统配置镜像服务

Windows/Mac

在 Docker Desktop 配置镜像

Docker Compose

Docker Compose 项目配置

K8s Containerd

Kubernetes 集群配置 Containerd

K3s

K3s 轻量级 Kubernetes 镜像加速

宝塔面板

在宝塔面板一键配置镜像

群晖

Synology 群晖 NAS 配置

飞牛

飞牛 fnOS 系统配置镜像

极空间

极空间 NAS 系统配置服务

爱快路由

爱快 iKuai 路由系统配置

绿联

绿联 NAS 系统配置镜像

威联通

QNAP 威联通 NAS 配置

Podman

Podman 容器引擎配置

Singularity/Apptainer

HPC 科学计算容器配置

其他仓库配置

ghcr、Quay、nvcr 等镜像仓库

专属域名拉取

无需登录使用专属域名

需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

轩辕镜像免费版与专业版有什么区别?

免费版仅支持 Docker Hub 访问,不承诺可用性和速度;专业版支持更多镜像源,保证可用性和稳定速度,提供优先客服响应。

轩辕镜像支持哪些镜像仓库?

专业版支持 docker.io、gcr.io、ghcr.io、registry.k8s.io、nvcr.io、quay.io、mcr.microsoft.com、docker.elastic.co 等;免费版仅支持 docker.io。

流量耗尽错误提示

当返回 402 Payment Required 错误时,表示流量已耗尽,需要充值流量包以恢复服务。

410 错误问题

通常由 Docker 版本过低导致,需要升级到 20.x 或更高版本以支持 V2 协议。

manifest unknown 错误

先检查 Docker 版本,版本过低则升级;版本正常则验证镜像信息是否正确。

镜像拉取成功后,如何去掉轩辕镜像域名前缀?

使用 docker tag 命令为镜像打上新标签,去掉域名前缀,使镜像名称更简洁。

查看全部问题→

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

oldzhang的头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
镜像详情
...
library/sonarqube
官方博客Docker 镜像使用技巧与技术博客
热门镜像查看热门 Docker 镜像推荐
一键安装一键安装 Docker 并配置镜像源
提交工单
免费获取在线技术支持请 提交工单,官方QQ群:13763429 。
轩辕镜像面向开发者与科研用户,提供开源镜像的搜索和访问支持。所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
免费获取在线技术支持请提交工单,官方QQ群: 。
轩辕镜像面向开发者与科研用户,提供开源镜像的搜索和访问支持。所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
官方邮箱:点击复制邮箱
©2024-2026 源码跳动
官方邮箱:点击复制邮箱Copyright © 2024-2026 杭州源码跳动科技有限公司. All rights reserved.
轩辕镜像 官方专业版 Logo
轩辕镜像轩辕镜像官方专业版
首页个人中心搜索镜像
交易
充值流量我的订单
工具
提交工单镜像收录一键安装
Npm 源Pip 源Homebrew 源
帮助
常见问题
其他
关于我们网站地图

官方QQ群: 13763429