Impossible to access the gateway/host from a container using an internal network #23164
Closed
krichprollsch
started this conversation in
General
Replies: 1 comment 1 reply
-
If you run rootless there is extra rootless-netns. A internal network is not routed anywhere as such it cannot reach the host where host.containers.internal would point to. You can only reach the gateway ip of your network and this one is in the rootless-netns not on the host. As root it should work like docker though. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello there 👋
In its doc, Docker says the internal network mode doesn't block the communication between a container and the gateway/host.
When I'm testing with Docker, the container can connect to the gateway.
But my Podman doesn't allow accessing the
gatewayhost.I'm wondering if the difference could be considered as a bug in Podman?
Or there is another way to achieve the same behavior?
Here is my Podman info:
Thank you 🙏
Beta Was this translation helpful? Give feedback.
All reactions