-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Document that source IP for rootless containers is always 10.0.2.100 and slirp4netns workaround with it's (dis)advantages #10884
Comments
@rugk: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@openshift-ci-robot retry Edit: does not work… 😞 |
Worth noting that this behavior can be worked around by specifying |
Very worth noting to also document these two things and whatever quirks are there. Especially for a webserver (as I use it), the performance thing actually matters (especially if you use "multiple" reverse-proxies or so…). Unrelated: Could someone add the |
Edit: Ah forget it, you said "slirp4netns port forwarding", which is only a part of slirp4netns, now this makes sense. |
A friendly reminder that this issue had no activity for 30 days. |
I don't recall seeing a docs PR, so this still requires attention. |
I opened #11177 |
Also add some missing options to podman pod create. Fixes containers#10884 Signed-off-by: Paul Holzinger <[email protected]>
Also add some missing options to podman pod create. Fixes containers#10884 Signed-off-by: Paul Holzinger <[email protected]>
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind documentation
(?)
Problem
I had a curious "problem" with the webserver caddy, where each source IP was always
10.0.2.100
. I could trace it back to podman being the obvious fault, because it's the "inside of container" vs "outside of container" view… 🙃In the end, I solved this by switching to
host
networking…Later I noticed this comment by @AkihiroSuda:
#9052 (comment)
Documentation
Searching the docs it seems that this comment was forgotten and nothing was actually documented.
As such, here is an issue to document the fact that this happens and explain the workaround/solution in this case (which AFAIK are either using rootfull containers or host networking as I did).
Edit: or…
--network slirp4netns:port_handler=slirp4netns
, apparently, as I was made ware, ref #9052 (anyway, that also needs documentation)Relevance
IMHO this is important to document, because the use case of having a proper ingoing IP address is quite popular for all webservers, I guess.
Also, it's a difference to Docker/limitation of rootless containers, so IMHO, it should also be documented here.
The text was updated successfully, but these errors were encountered: