
这是一个集成Nacos配置同步功能的Sentinel Dashboard镜像,用于微服务架构中的流量控制、熔断降级、系统保护等规则的可视化管理,并将配置自动同步至Nacos配置中心,确保规则配置的持久化与动态更新。
| 环境变量 | 说明 | 默认值 |
|---|---|---|
| NACOS_SERVER | Nacos服务地址 | 127.0.0.1:8848 |
默认暴露端口:8080(Web控制台端口)
Docker Run命令
bashdocker run -d -p 8080:8080 -e NACOS_SERVER=192.168.1.100:8848 --name sentinel-dashboard draco1023/sentinel-dashboard
参数说明
-p 8080:8080:映射容器8080端口到宿主机-e NACOS_SERVER=192.168.1.100:8848:指定Nacos服务地址(替换为实际Nacos地址)--name sentinel-dashboard:指定容器名称微服务应用需添加如下配置以接入Sentinel Dashboard并同步Nacos规则:
yamlspring: cloud: sentinel: eager: true # 饥饿加载 datasource: nacos: server-addr: ${spring.cloud.nacos.server-addr} # Nacos地址,需与Sentinel Dashboard的NACOS_SERVER一致 ds-flow: # 流量控制规则 nacos: dataId: ${spring.application.name}-flow-rules groupId: SENTINEL_GROUP rule-type: flow ds-param-flow: # 参数流量控制规则 nacos: dataId: ${spring.application.name}-param-rules groupId: SENTINEL_GROUP rule-type: param-flow ds-degrade: # 熔断降级规则 nacos: dataId: ${spring.application.name}-degrade-rules groupId: SENTINEL_GROUP rule-type: degrade ds-system: # 系统规则 nacos: dataId: ${spring.application.name}-system-rules groupId: SENTINEL_GROUP rule-type: system ### 网关规则(如使用Spring Cloud Gateway) ds-gw-flow: # 网关流量规则 nacos: dataId: ${spring.application.name}-gateway-rules groupId: SENTINEL_GROUP rule-type: gw-flow ds-gw-api: # 网关API分组规则 nacos: dataId: ${spring.application.name}-api-rules groupId: SENTINEL_GROUP rule-type: gw-api-group ### 网关规则结束 transport: dashboard: 127.0.0.1:8080 # Sentinel Dashboard地址(替换为实际部署地址)
通过Maven Jib插件构建镜像,配置示例如下:
xml<plugin> <groupId>com.google.cloud.tools</groupId> <artifactId>jib-maven-plugin</artifactId> <version>3.3.1</version> <configuration> <from> <image>eclipse-temurin:8u352-b08-jre-alpine</image> <!-- 基础镜像 --> </from> <to> <image>docker.io/draco1023/sentinel-dashboard</image> <!-- 目标镜像地址 --> <auth> <username>YOUR_NAME</username> <!-- Docker仓库用户名 --> <password>YOUR_PASSWORD</password> <!-- Docker仓库密码 --> </auth> <tags> <tag>VERSION</tag> <!-- 版本标签 --> <tag>latest</tag> <!-- 最新版本标签 --> </tags> </to> <container> <environment> <TZ>Asia/Shanghai</TZ> <!-- 时区设置 --> <NACOS_SERVER>127.0.0.1:8848</NACOS_SERVER> <!-- 默认Nacos地址 --> </environment> <ports> <port>8080</port> <!-- 暴露端口 --> </ports> </container> </configuration> </plugin>
以下是 draco1023/sentinel-dashboard 相关的常用 Docker 镜像,适用于 不同场景 等不同场景:
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。






探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
docker search 限制
站内搜不到镜像
离线 save/load
插件要用 plugin install
WSL 拉取慢
安全与 digest
新手拉取配置
镜像合规机制
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
域名连通性排查
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务