Published podman container ports unreachable on host

Solution Verified - Updated -

Issue

  • I can't reach published podman container ports from the host.
  • Unable to curl exposed podman container port on host.
  • Connection refused when using curl to connect to a published podman container port.
 # podman run -it -d --name testhttpd -p 8080:80 registry.redhat.io/rhscl/httpd-24-rhel7
 # curl localhost:8080
    curl: (7) Failed to connect to localhost port 8080: Connection refused

Environment

  • Red Hat Enterprise Linux 7.7
  • podman-1.4.4-3.el7.x86_64

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content