Docker Community Forums

Share and learn in the Docker community.

Docker-compose only 2 ports Can be accessed externally and others only inside the same server


(Jean Andrew Fuentes) #1

Running port are running in :
8080
8081
8082

ubuntu@ip-10-0-0-184:~$ curl 0.0.0.0:8080
{"timestamp":1548749964224,"status":404,"error":"Not Found","message":"No message available","path":"/"}
ubuntu@ip-10-0-0-184:~$ curl 0.0.0.0:8081
{"timestamp":1548749970373,"status":404,"error":"Not Found","message":"No message available","path":"/"}
ubuntu@ip-10-0-0-184:~$ curl 0.0.0.0:8083
{"timestamp":"2019-01-29T08:19:34.512+0000","status":404,"error":"Not Found","message":"No message available","path":"/"}

IInside the Host OS you can request and have a response at port:
8080
8081
8083

➜  ~ curl 3.0.125.244:8080
{"timestamp":1548750066937,"status":404,"error":"Not Found","message":"No message available","path":"/"}%                                                                                                                              ➜  ~ curl 3.0.125.244:8081
{"timestamp":1548750070835,"status":404,"error":"Not Found","message":"No message available","path":"/"}%                                                                                                                              ➜  ~ curl 3.0.125.244:8083
curl: (7) Failed to connect to 3.0.125.244 port 8083: Operation timed out

But when You are trying to access it externally outside.
Only two ports have a response
port : 8080 and 8081

Does it have anything to do with docker network ?


(Caldarolad) #2

My initial guess is that port 8083 is turned off on the host.