gliderlabs / resolvable

Host-level DNS gateway for Docker
MIT License
315 stars 37 forks source link

--net=host causes loop? #15

Open JoeOrtiz opened 8 years ago

JoeOrtiz commented 8 years ago

I have many services under --net=host, but this appears in the logs continuously:

2015/12/07 20:18:10 error adding container a3fac3a90373: IP not available with network mode "host" 2015/12/07 20:18:11 error adding container a3fac3a90373: IP not available with network mode "host" 2015/12/07 20:18:13 error adding container ea440bf54b63: IP not available with network mode "host" 2015/12/07 20:18:13 error adding container ea440bf54b63: IP not available with network mode "host" 2015/12/07 20:18:15 error adding container 8d302b8d7e89: IP not available with network mode "host" 2015/12/07 20:18:15 error adding container 8d302b8d7e89: IP not available with network mode "host" 2015/12/07 20:18:20 error adding container c93085880387: IP not available with network mode "host"

Anyway for it just to ignore those ? So it can take less resources?

ekristen commented 8 years ago

that is just a warning that can be ignored. they should only appear upon restart, or when a container is started/restarted that is in net host mode, there is not loop AFAIK.

MichaelMackus commented 8 years ago

What about containers that are run within a custom docker network? Even if I start resolvable within that network (with --net=NETWORK) I get errors similar to above (error adding container 67c695bea6b0: unknown network mode%!(EXTRA string=NETWORK)) and I'm unable to ping/access containers via their hostname/name.docker as before.

ekristen commented 8 years ago

Unfortunately there are several short comings i've found with resolvable, I'm sure they will get resolved in time. It doesn't support networks unfortunately.

MichaelMackus commented 8 years ago

I assumed as much. Thanks for the input. I'll probably just end up using a single proxy via nginx or similar in the meantime. At least that way I still get networks and can use a single IP address for all hosts.

tilgovi commented 8 years ago

This issue can be closed, and if there's specific work needed to play more nicely with docker networking that should be new, specific issues.