Sajitha:
Hi, can you tell me how to check particular port is listening inside the container by getting inside the container.
Trung Tran:
docker inspect CONTAINER_ID | grep ExposedPorts -A2
"ExposedPorts": {
"80/tcp": {}
},
Trung Tran:
You should be able to find all necessary information of a docker container with docker inspect
command!
Sajitha:
thank you @Trung Tran. have logged inside the container and started an agent in background. so now checking through netstat -tnlp getting the output.
Sajitha:
another server has to communicate to this agent. so do i need to create a service for this as well . agent is running in port 8820.
Trung Tran:
Can you describe your system in high-level?
Trung Tran:
You can use pod to pod communication, but the recommended way is to use service!
Trung Tran:
And apply netpol on that!
Sajitha:
thank you so much @Trung Tran
Sajitha:
another server is running in on-prem datacenter. so please correct me, service with ingress has to be created
Trung Tran:
Yes, sound make sense to me @Sajitha
Sajitha:
thanks a lot @Trung Tran