[RHEL podman 5.4] pasta should map the host's hostname by default #26497
Replies: 3 comments
-
Is there a reason you cannot use the |
Beta Was this translation helpful? Give feedback.
-
It might be possible, but for me it feels more like a workaround on user side than something that actually makes sense. I can hardly explain my users that they can reach absolutely all machines we have internally, all except the very one they use to run their containers. Plus then since we also use docker, I will have to tell them: if you run in this environment, you have to use I got caught myself multiple times by this: starting a container to quickly experiment a thing, then trying to pull/push my experimentation from a git repo on my machine and ah.... I can't connect to my machine, and now it's too late to update the container config to make it work.... So I use a third machine as jump server, not really convinient. |
Beta Was this translation helpful? Give feedback.
-
Well here is the thing, slirp4netns didn't allow host connection explicitly either. It just happen to work because slirp4netns picked one ip ( Pasta simply choose a different default by not picking a static ip to use but rather reuses the same as the host to avoid "NAT", this comes with other advantages. Some services require a local subnet and don't allow connections from another subnet with pasta this just works. Anyway no need to rehash the same points over and over, I wrote in detail on our blog and there are plenty of already existing issues on this repo. If you want the old slirp behavior just configure pasta to use a static ip
https://blog.podman.io/2024/03/podman-5-0-breaking-changes-in-detail/ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Issue Description
Hi,
Using a rather up to date RHEL 9.6, coming with Red Hat's podman 5.4.0, and thus using past by default, I am unable to connect to the host running podman from inside a running container. We had this issue with podman 5.2 already, thus we hardcoded in our containers.conf:
however now trying to remove this workaround as we use podman 5.4, it still doesn't work by default, while I think it should.
Steps to reproduce the issue
Steps to reproduce the issue
$(hostname)
returns the fully qualified dns name of the host (in my case, it returnsnceoberhel0058.rnd.amadeus.net
):$(hostname)
host, then it works, but I wish it would work out of the box, without that explicit argument:Describe the results you received
Rootless users are by default unable to reach the host from inside a container.
Describe the results you expected
Rootless users shall by default be able to reach the host from inside the container. Docker (which is used as a rootful deamon 99.99% of the time :( ) allows it by default, so this is kind of an expectation from the OCI engine user that it does work out of the box. It was also working by default before pasta was used by default in podman 5.
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
No
Additional environment details
No response
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions