Docker-proxy not passing connections to ports other than 80 from outside localhost (other machines)

Since few days my nginx, docker-compose, ubuntu server stopped serving api calls (port 8080), static files are still being served (port 80).

iptables -L output:

  • Runc Containerd Check pointing support
  • How do I define the name of image built with docker-compose
  • Remote Node.js typescript debugging in WebStorm
  • Reach host with Docker Compose
  • How to run docker image as singleton
  • Docker: go get from a private GitHub repo
  • Chain INPUT (policy ACCEPT)
    target     prot opt source               destination         
    
    Chain FORWARD (policy ACCEPT)
    target     prot opt source               destination         
    DOCKER-ISOLATION  all  --  anywhere             anywhere            
    DOCKER     all  --  anywhere             anywhere            
    ACCEPT     all  --  anywhere             anywhere             ctstate RELATED,ESTABLISHED
    ACCEPT     all  --  anywhere             anywhere            
    ACCEPT     all  --  anywhere             anywhere            
    
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination         
    
    Chain DOCKER (1 references)
    target     prot opt source               destination         
    ACCEPT     tcp  --  anywhere             172.17.0.2           tcp dpt:27017
    ACCEPT     tcp  --  anywhere             172.17.0.5           tcp dpt:http-alt
    ACCEPT     tcp  --  anywhere             172.17.0.5           tcp dpt:8000
    ACCEPT     tcp  --  anywhere             172.17.0.5           tcp dpt:4000
    ACCEPT     tcp  --  anywhere             172.17.0.5           tcp dpt:3000
    ACCEPT     tcp  --  anywhere             172.17.0.5           tcp dpt:http
    
    Chain DOCKER-ISOLATION (1 references)
    target     prot opt source               destination         
    RETURN     all  --  anywhere             anywhere            
    

    curl from the localhost (from the sever to itself) works, server receives the request:

    curl 172.17.0.5:8080
    {"statusCode":404,"error":"Not Found"}
    

    Curl from elsewhere to port other than 80 just hangs, port 80 always works.

    Any help is appreciated. Let me know if any details are missing. I have investigated through the whole stack and this seems to be the part that’s broken, and I have no idea why.

  • Pull private docker images from Google Container Registry w/o gcloud
  • How to connect docker in VM of VMware Player
  • Cannot detect Linux distribution or it’s unsupported
  • How to initialize and run Docker on windows?
  • Kubernetes pod can't access its own service
  • Azure VM with Docker failing to connect
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.