You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue: followed the tutorial above and ran under root user:
podman run -dt --name webserver -p 8080:80 quay.io/libpod/banner
when initiated connection from local machine: curl :8080 - works fine, got the banner
when initiated connection from external machine: curl :8080 - connection stuck
when adding "--network host" to "podman run" command - connection from external machine works fine
The tutorial above doesn't contain any additional requirements or tricks to allow connections from external machine to rootful container. We have a bug either in podman or in tutorial.
Data:
firewall is off
podman version:
Client: Podman Engine
Version: 4.9.4-rhel
API Version: 4.9.4-rhel
Go Version: go1.21.7 (Red Hat 1.21.7-2.module+el8.10.0+21638+b01be198)
Built: Thu Aug 8 14:24:42 2024
OS/Arch: linux/amd64
If you have an issue in RHEL I suggest you contact the Red Hat support.
Upstream only supports the latest version so my first question is to try this with the latest versions.
As far as your command goes yes this should work without extra configuration normally. Do you have any firewall settings configured on your own? Any specific sysctl that block external routing? How do you connect from another machine ipv4 or ipv6? Have you checked the firewall rules the were created by podman to configure the port forward?
Without any specific details on your environment it is impossible to know what is going on.
Tried using the tutorial https://github.com/containers/podman/blob/main/docs/tutorials/basic_networking.md
Issue: followed the tutorial above and ran under root user:
podman run -dt --name webserver -p 8080:80 quay.io/libpod/banner
The tutorial above doesn't contain any additional requirements or tricks to allow connections from external machine to rootful container. We have a bug either in podman or in tutorial.
Data:
firewall is off
podman version:
Client: Podman Engine
Version: 4.9.4-rhel
API Version: 4.9.4-rhel
Go Version: go1.21.7 (Red Hat 1.21.7-2.module+el8.10.0+21638+b01be198)
Built: Thu Aug 8 14:24:42 2024
OS/Arch: linux/amd64
rpm -q podman: podman-4.9.4-12.module+el8.10.0+22202+761b9a65.x86_64
OS: Redhat 8.10
The text was updated successfully, but these errors were encountered: