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

docker-compose启动后在dashboard可以看到ip,但无法ping通 #67

Open
cutemanworking opened this issue Jan 28, 2023 · 1 comment

Comments

@cutemanworking
Copy link

两台机器,其中一台国外vps,通过docker-compose启动后,看日志显示都已经成功登录,有自己的ip. 网卡名称为{hostname},但无法互相ping通,请教是什么原因?

ps: iptables规则已设,iptables -A INPUT-s 100.100.0.0/24 -j ACCEPT (FORWARD也已设),sysctl.conf的forward也已enable, 两台机器其它"网络应用"都正常.

同时请教个问题,docker-compose每次启动都获取新IP,如何解决?

@Yong-OmniEdge
Copy link
Contributor

如果是国内到国外,网络原因比较大。

每次启动获取新IP的原因是,cp /proc/sys/kernel/random/uuid /etc/machine-id,执行的时候docker每次都会有一个新的uuid,你可以修改你的dockerfile,每次都给同一个uuid。启动的脚本在: https://github.com/omniedgeio/omniedge-docker/blob/main/entrypoint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants