Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quick-start容器网络问题,client的无法获取到配置 #3168

Closed
xiumin1993 opened this issue Jul 9, 2020 · 7 comments
Closed

quick-start容器网络问题,client的无法获取到配置 #3168

xiumin1993 opened this issue Jul 9, 2020 · 7 comments
Labels
area/quick-start quick-start kind/report-problem Categorizes issue when someone report the problem he/she meeted status/fixed issue fixed already

Comments

@xiumin1993
Copy link

你好,我按照docker容器版本部署了一个quick-start容器,使用宿主机ip可以正常访问配置界面。
但是在使用client连接时遇到了网络问题,经排查发现
client初始化时会使用apollo.meta 调用apollo.meta/services/config?appId=xx&ip=xx获取ServiceDTO,
然而返回的homepageUrl是 quick-start容器的内部ip 并非宿主机的ip,导致后续使用 homepageUrl同步数据网络连接不上,请问这个能怎么处理一下啊?
我试过修改容器的网络模式为host,发现根部无法启动

@Ayden-Franklin
Copy link
Contributor

可以尝试指定EUREKA_INSTANCE_HOME_PAGE_URL为宿主机IP。

@stale
Copy link

stale bot commented Sep 8, 2020

This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed in 14 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Sep 8, 2020
@xiumin1993
Copy link
Author

xiumin1993 commented Sep 10, 2020 via email

@stale stale bot removed the stale label Sep 10, 2020
@Ayden-Franklin
Copy link
Contributor

Would you like to close this issue since it had been resolved?

@stale
Copy link

stale bot commented Nov 10, 2020

This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed in 14 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Nov 10, 2020
@stale
Copy link

stale bot commented Nov 24, 2020

This issue has been automatically closed because it has not had activity in the last 14 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted". Thank you for your contributions.

@stale stale bot closed this as completed Nov 24, 2020
@Anilople Anilople added area/quick-start quick-start kind/report-problem Categorizes issue when someone report the problem he/she meeted status/fixed issue fixed already and removed stale labels Dec 23, 2020
@WingGao
Copy link

WingGao commented Jul 25, 2023

=

I revived the answer, solved the problem 发自我的iPhone

------------------ 原始邮件 ------------------ 发件人: stale[bot] <notifications@github.com> 发送时间: 2020年9月8日 18:04 收件人: ctripcorp/apollo <apollo@noreply.github.com> 抄送: xiumin1993 <876599187@qq.com>, Author <author@noreply.github.com> 主题: 回复:[ctripcorp/apollo] quick-start容器网络问题,client的无法获取到配置 (#3168) This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed in 14 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

同样的问题,你是怎么解决的? @xiumin1993

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/quick-start quick-start kind/report-problem Categorizes issue when someone report the problem he/she meeted status/fixed issue fixed already
Projects
None yet
Development

No branches or pull requests

4 participants