-
I'm trying to understand container networking with a simple example where I manage the network namespace myself and let a container join it. However, it seems like listening on the loopback interface in the namespace has no effect in the container and I don't understand why.
When I try to do the same in a container however, it seems as listening has no effect:
Interestingly, when I run |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Are you running Podman as root or rootless? |
Beta Was this translation helpful? Give feedback.
-
Your test is wrong. The nc binary from the alpine image does not listen on port 4040. You have to use |
Beta Was this translation helpful? Give feedback.
Your test is wrong. The nc binary from the alpine image does not listen on port 4040. You have to use
nc -l -p 4040
to make it use the correct port.You can check with
podman exec test netstat -tlp