alibaba / alibaba/Sentinel

docker-network_mode为host,sentinel无法发现

Open
#1,181 0 comments 0 reactions 0 assignees View on GitHub
kind/question
Dominant language
Java
Stars
23.1k
Forks
8.1k
PR merge metrics
No merged PRs in 30d

Description

## Issue Description

docker-network_mode为host,sentinel无法发现
把改成brigde就可以.

## sentinel控制台启动

java -jar /home/dpan/sentinel/sentinel-dashboard-1.7.0.jar --server.port=8021

## 客户端都设置的独立的端口
sentinel:
transport:
dashboard: ${SENTINEL_DASHBOARD_HOST:192.168.10.107}:${SENTINEL_DASHBOARD_PORT:8021}
port: ${RENZHENG_SENTINEL_PORT:8730}

## 与 spring.cloud.inetutils.defaultIpAddress 有关系吗?
配置显示的是127.0.0.1

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with Docker network_mode set to host, using the Sentinel dashboard command and the client transport configuration shown in the report. Inspect the address exposed through spring.cloud.inetutils.defaultIpAddress and compare discovery behavior with bridge networking. Done means Sentinel clients can be discovered while using host networking, or the supported limitation is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, java, spring
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.