I have one docker container running with multiple service binding to multiple ports
[root@fdae75a620f2 app]# netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
tcp 0 0 :::10000 :::* LISTEN -
tcp 0 0 :::22 :::* LISTEN -
tcp 0 0 ::ffff:127.0.0.1:8890 :::* LISTEN -
tcp 0 0 ::ffff:127.0.0.1:8891 :::* LISTEN -
tcp 0 0 ::ffff:127.0.0.1:8892 :::* LISTEN -
tcp 0 0 ::ffff:127.0.0.1:8896 :::* LISTEN -
tcp 0 0 ::ffff:127.0.0.1:8897 :::* LISTEN -
tcp 0 0 ::ffff:127.0.0.1:8898 :::* LISTEN -
tcp 0 0 ::ffff:127.0.0.1:8899 :::* LISTEN -
tcp 0 0 :::7878 :::* LISTEN -
The 889*
and 7878
are my services. When I expose 7878 to host 0.0.0.0:17878->7878
. However, none of the 889*
service can POST to the 7878
service. curl
also doesn’t work. The response I get is
<body>
<h1>Gateway Timeout</h1>
<p>Server error - server 127.0.0.1 is unreachable at this moment.<br><br>Please retry the request or contact your adminstrator.<br></p>
</body>
I just want the 889*
services to work with 7878
service. All these are REST webservices.
I have not idea what is going on. What should I be looking at? Thanks!