Port not listening on host when PODMAN_USERNS=keep-id is used #12872
Labels
kind/bug
Categorizes issue or PR as related to a bug.
kind/feature
Categorizes issue or PR as related to a new feature.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
After testing out the setting in #12848
(remove all pod/containers) and update setuid/setgid.
Now I found if I start a container with PODMAN_USERNS=keep-id, the port is not listening on the host. I can't find it in netstat. Previously it is listening.
Edit 2: It is on FC35, rootless mode. The host also have K3S root mode with Cilium CNI.
I found the pod can listen a port on the host if keep-id is not used.
Steps to reproduce the issue:
start the container with
PODMAN_USERNS=keep-ip
The port 5018 is not listening on the host.
Describe the results you received:
Attaching a log file for starting the container
debug-log.txt
podman ps --ns -a | grep nginx
b96b95581b68 container-nginx 0
Describe the results you expected:
It should listen the port on the host.
Additional information you deem important (e.g. issue happens only occasionally):
I have run podman system migrate and the problem persist.
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
Physical machine, desktop.
The text was updated successfully, but these errors were encountered: