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 1.13 container is not reachable after giving IP-address #211

Closed
bebehei opened this issue Jan 20, 2017 · 7 comments
Closed

docker 1.13 container is not reachable after giving IP-address #211

bebehei opened this issue Jan 20, 2017 · 7 comments

Comments

@bebehei
Copy link

bebehei commented Jan 20, 2017

with the current new release of docker 1.13, the default Policy of iptables changes from FORWARD to DROP (see: moby/moby#28257)

pipework won't be successful anymore to assign valid global IPs to docker containers, as all packets get dropped by iptables.

@m4h3
Copy link

m4h3 commented Feb 3, 2017

is there any workaround known ?

@jpetazzo
Copy link
Owner

jpetazzo commented Feb 3, 2017

Change back the default policy?

@bebehei
Copy link
Author

bebehei commented Feb 3, 2017

I hit this bug two weeks ago, so everything IIRC:

-> There is no possibility to change back the policy.

@bebehei
Copy link
Author

bebehei commented Feb 3, 2017

Update: this is verified. See moby/moby#28257 (comment)

PR moby/moby#490 got unfixed by this.

@jpetazzo
Copy link
Owner

jpetazzo commented Feb 3, 2017

I meant – change it in the pipework script, with iptables -P FORWARD ACCEPT. But make sure to fully understand the implications first! If you try, let us know if that works and I'll update the README accordingly. Thank you!

@bebehei
Copy link
Author

bebehei commented Feb 3, 2017

I meant – change it in the pipework script

Yeah. That's the solution and this is what pipework is actually should do.

I assign my containers an IP-Address on my system's main bridge. This IP should be reachable without any specific routing on other computers. Docker network does not do this. This is the reason, why I use pipework:

./pipework br1 container [email protected]...

This is very easy with pipework.

And with docker 1.13 I'm not able to reach my containers on this global IP anymore. IMO this should be pipework's job. It should add there an additional iptables entry, allowing all connections to/from this specific IP.

Also I think just fixing it for myself does not help others. I bet I'm not the only one using this scenario.

@jpetazzo
Copy link
Owner

I understand. We are trying to move away from pipework and use CNM plugins instead. We could change the iptables policy in pipework, but I'm afraid that this could have security implications in some cases.

Perhaps we could:

  • add a warning in pipework's documentation (i.e. the README file in this repo)
  • add a check in pipework, detecting if the FORWARD policy is not ACCEPT (and display a warning)

Let me know if you think that would be helpful!

@jpetazzo jpetazzo closed this as completed Apr 5, 2024
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

3 participants