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

--net=host causes loop? #15

Open
JoeOrtiz opened this issue Dec 7, 2015 · 5 comments
Open

--net=host causes loop? #15

JoeOrtiz opened this issue Dec 7, 2015 · 5 comments

Comments

@JoeOrtiz
Copy link

JoeOrtiz commented Dec 7, 2015

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
Copy link

ekristen commented Dec 7, 2015

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
Copy link

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
Copy link

ekristen commented Jan 6, 2016

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
Copy link

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
Copy link

tilgovi commented Feb 18, 2016

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.

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

4 participants