Unreachable content (Docker containers) on other port than 80

October 1, 2018 399 views
Docker

Hello everyone,

I have a problem with accessing Docker containers for any other port than 80. Previously it worked and I had services accessible on ports 5000 and 7000 in addition to a nginx server installed directly on the droplet. I recently do a dist-upgrade to Ubuntu 18.04.1 LTS and that may have broken stuff.

What works:

  • accessing a page on port 80 or 443 served by nginx (without docker)
  • accessing my docker container from another machine if bind on port 80
  • accessing my docker container from the localhost regardless of port

What doesn't work:

  • accessing a page on port 81 served by nginx (without docker)
  • accessing my docker container if bind to port 5000 or 7000

So it seems that there is a problem with other ports than 80 and 443 for serving content on the internet. I have not DO Firewall configured. I tried to look iptables stuff but I understand very little but don't find anything suspicious. I tried various things for hours be still cannot solve the issue.

Could you help me?

1 comment
2 Answers

Hi,

I will need to take a closer look at the server. Feel free to get in touch (it's joe at domain in my username) and I'll fix it for you.

Cheers

Thanks guys, I finally understood & solved the issue. First, I created subdomains and set up the web server to act as a reverse proxy. Second, a colleague informed me that it is the network firewall that is blocking most ports at work.

Have another answer? Share your knowledge.