Rootless, bridge network and reaching a host service from a container #23776
-
Hi, I am struggling with the following: I have a compose file with a bunch of services (Kafka, Mongo, etc) and running on a custom bridge network I created manually (let's call it my-bridge). I then have a docker file that builds and runs a Java webapp (
I'm quite sure that this used to work fine until very recently, so I dunno if my distro changed something, but the bottom line is, now this doesn't work anymore. When starting
So I did some searching and stumbled upon some Issues in this project (e.g. #22653). I tried to apply the first recommendation mentioned here, to no avail. I created
Next, I have started
And I have changed my-service-a's app configuration so that instead of looking for my-service-b at Now
What am I doing wrong? Thanks P.S. I have noticed that netavark-dhcp-proxy.socket/service were not running, so I enabled those via systemd, so that they start on every boot. Not sure it's correct/needed.
Details
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 9 replies
-
The If you want this entry to work automatically you will need to have a second host ip or switch the ip pasta uses via And the latest pasta version has a new version where we can map any ip to the host so we can fix this properly in podman by v5.3 hopefully #19213, containers/common#2136 |
Beta Was this translation helpful? Give feedback.
-
may i know how to set when the host is Windows WSL2? many thanks! |
Beta Was this translation helpful? Give feedback.
-
Update for podman 5.3 we will use the pasta --map-guest-addr option by default and use that for host.containers.internal so it should work without any config changes. |
Beta Was this translation helpful? Give feedback.
-
Finally received the update to postman 5.3 from my distro (opensuse Tumbleweed), and I can confirm that this finally works seamlessly. I just tested after deleting my Thanks! |
Beta Was this translation helpful? Give feedback.
Update for podman 5.3 we will use the pasta --map-guest-addr option by default and use that for host.containers.internal so it should work without any config changes.
https://blog.podman.io/2024/10/podman-5-3-changes-for-improved-networking-experience-with-pasta/