DearTanker Posted June 16, 2020 Posted June 16, 2020 (edited) As we know, if we use bridge network mode, all docker containers will get a dedicated IP like 172.17.0.*. But when you reboot some docker containers, those IPs will change. so it is very inconvenient to use IP. I don't want to use unraid IP, because I think it will let all data transfer back and forth in the router. Is there any way to use something like hostname to links containers on unraid? Edited June 16, 2020 by DearTanker Quote
Squid Posted June 16, 2020 Posted June 16, 2020 1 minute ago, DearTanker said: But when you reboot some docker containers, those ip will change. so it is very inconvenient to use ip. Why would you directly use those IPs? Usual way to communicate with a container would via the host IP and applicable port. Quote
DearTanker Posted June 16, 2020 Author Posted June 16, 2020 2 minutes ago, Squid said: Why would you directly use those IPs? Usual way to communicate with a container would via the host IP and applicable port. I don't want to use unraid IP, because I think it will let all data transfer back and forth in the router. Like "unraid-ip:123 --> router --> unraid-ip:456 --> router --> unraid-ip:123". Quote
unw1red Posted September 24, 2020 Posted September 24, 2020 As long as your server is wired, data will not traverse the router unless it being used by a wireless client or if the client is on a different subnet than the server. Meaning, if you are trying to read from InfluxDB container from Grafana container, via the server IP, the data will not traverse your router. It will be horseshoed through the eth0 interface. Make sense? 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.