Unable to access exposed port of containerA from within containerB #23573
Replies: 1 comment
-
Without a custom network you use the pasta network mode as default and because that copies your host ip into the container so it will not reach that ip on the host anymore. In the custom network case we still use pasta but there is a extra network namespace involved, see something like #22943 (comment) |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am not sure if this is expected podman behaviour, or whether this actually is a bug.
I am trying to do the following:
containerA
containerA
exposes a port, e.g. port9999
containerB
- which tries to connect to this exposed port via the host its IP address. This doesn't work.When manually creating a container network it starts to work.
I am not sure why a network needs to be created for containerB to access a service already exposed to the host.
This is with podman 5.1.1:
Roy
Beta Was this translation helpful? Give feedback.
All reactions