-
Notifications
You must be signed in to change notification settings - Fork 389
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
[BUG]:docker部署时 net=host ,app_info.json读取宿主机 本机ip的 bug #957
Comments
请问一下,在容器内执行hostname -i得到的IP是哪个? |
我觉得 云服务器这种情况应该蛮多的吧,简单的方法就是 部署文档里完善一下,我们目前的方案就是 docker 运行加add-host 读取宿主机的真实有效ip。看了你们源码 这一块逻辑处理的蛮简单的 ,在 MachineInfoUtil.cpp |
这个事情下次双周会能否一起来交流下? |
请问是什么时间,怎样的流程? 以及我需要准备什么? |
可以考虑将h_addr_list里的address都取下来,并使用ifr_addr的地址做校验,校验通过的优先作为本机地址,如果都通不过还是取第一个。这样既不破坏既有顺序,也不会轻易取到错误地址。 |
是的,这个思路可以的,预计近两天会提交上去。 |
👍🏻,方便的话可以在这里登记下使用场景,多谢。#693 ilogtail发展离不开大家的共同努力。 |
Describe the bug
A clear and concise description of what the bug is, ideally within 20 words.
docker部署时 net=host ,app_info.json读取宿主机 本机ip的 bug,具体情况描述如图片:
iLogtail Running Environment
Please provide the following information:
ilogtail version:
1.5.1
Yaml configuration:
ilogtail.LOG:
logtail_plugin.LOG:
The text was updated successfully, but these errors were encountered: