Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

podman container doesn't allow external connections #24911

Open
slonvpalto opened this issue Dec 29, 2024 · 0 comments
Open

podman container doesn't allow external connections #24911

slonvpalto opened this issue Dec 29, 2024 · 0 comments
Labels
network Networking related issue or feature

Comments

@slonvpalto
Copy link

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

  • 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

rpm -q podman: podman-4.9.4-12.module+el8.10.0+22202+761b9a65.x86_64
OS: Redhat 8.10

@sbrivio-rh sbrivio-rh added the network Networking related issue or feature label Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
network Networking related issue or feature
Projects
None yet
Development

No branches or pull requests

2 participants