container port not reachable in pod #17328
realSConway
started this conversation in
General
Replies: 1 comment 2 replies
-
Thanks for reaching out, @realSConway. I converted it to a discussion as it looks more like a question rather than a bug to me. Could it be a bug in your application |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Issue Description
Hello experts,
I'm having issues connecting to listening port of container which is part of a pod.
Steps to reproduce the issue
Create a pod:
podman pod create --name node --publish 127.0.0.1:50002:50002
Then create container in pod:
podman create --name ers --pod service localhost/project
start service
podman start service
I check the status of the service and see it it up:
e3dea3659a11 localhost/project:latest bash 5 hours ago Up 5 hours ago 127.0.0.1:50002->50002/tcp service
This service container runs a service that listens on port 50002.
However when I nc to server:port, I get error:
nc: connect to 127.0.0.1 port 50002 (tcp) failed: Connection refused
Run netshoot container in pod:
podman run --name netshoot --pod bitcoin nicolaka/netshoot
With netshoot I have access to more networking tools.
here are the results:
Describe the results you received
Describe the results you received
Describe the results you expected
Describe the results you expected
podman info output
If you are unable to run podman info for any reason, please provide the podman version, operating system and its version and the architecture you are running.
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
Additional environment details
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting
Beta Was this translation helpful? Give feedback.
All reactions