Affected versions: RHEL 10.0 RHEL 10.1

πŸ“– ~1 min read

Table of contents
  1. Symptom & Impact
  2. Environment & Reproduction
  3. Root Cause Analysis
  4. Quick Triage
  5. Step-by-Step Diagnosis
  6. Solution – Primary Fix
  7. Solution – Alternative Approaches
  8. Verification & Acceptance Criteria
  9. Rollback Plan
  10. Prevention & Hardening
  11. Related Errors & Cross-Refs
  12. References & Further Reading

Symptom & Impact

Containerized service fails to expose expected host port and stays unreachable.

Environment & Reproduction

Typically occurs with rootless podman and non-default service ports.

podman run -d -p 443:8443 myimage

Root Cause Analysis

SELinux port type does not allow the target daemon context to bind requested port.

Quick Triage

Inspect AVC denials, current port labels, and container logs.

ausearch -m avc -ts recent
semanage port -l | grep http

Step-by-Step Diagnosis

Verify runtime bind failures and policy context mismatch.

podman logs 
journalctl -t setroubleshoot -n 50
Illustrative mockup for rhel-10 β€” podman_port_diag
Container port bind denial evidence β€” Illustrative mockup β€” Progressive Robot

Solution – Primary Fix

Label custom port with appropriate SELinux type and restart workload.

Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

sudo semanage port -a -t http_port_t -p tcp 8443 || sudo semanage port -m -t http_port_t -p tcp 8443
podman restart 
Illustrative mockup for rhel-10 β€” podman_port_fix
SELinux port label and policy fix β€” Illustrative mockup β€” Progressive Robot

Solution – Alternative Approaches

Use standard allowed ports or map to an existing labeled service port.

Verification & Acceptance Criteria

Port binds successfully and traffic reaches container service.

ss -ltnp | grep 8443
curl -k https://localhost:8443

Rollback Plan

Remove custom port label if not needed.

sudo semanage port -d -t http_port_t -p tcp 8443

Prevention & Hardening

Maintain an approved port-to-type mapping catalog for containerized services.

Related to rootless networking limits and firewalld missing port exposure.

Related tutorial: View the step-by-step tutorial for rhel-10.

View all rhel-10 tutorials on the Tutorials Hub β†’

Browse all common problems & solutions on the Tutorials Hub.

References & Further Reading

Podman and SELinux container policy references for enterprise Linux.

Need Expert Help?

If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today β€” we respond within one business day.