Skip to content

Can't listen on port with --network ns? #14022

Answered by Luap99
simolus3 asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@simolus3
Comment options

@mheon
Comment options

@simolus3
Comment options

Comment options

You must be logged in to vote
1 reply
@simolus3
Comment options

Answer selected by simolus3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants