Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

269
Views
Docker containers work on port 80 only

I tried this on multiple machines (Win10 and server 2016), same result using this tutorial: https://docs.docker.com/docker-for-windows/#set-up-tab-completion-in-powershell

This works

docker run -d -p 80:80 --name webserver nginx

Any other port, fails with

docker run -d -p 8099:8099 --name webserver nginx --> ERR_EMPTY_RESPONSE

Looks like Docker/nginx is listening failing on this port, but failing. Telneting to this port shows that the request goes through, but disconnects right away. This is different from when a port is not being listened to on at all.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

There are two ports in that list. The first port is the one docker publishes on the host for you to connect to remotely. The second port is where to send that traffic in the container. Docker doesn't modify the application, so the application itself needs to be listening on that second port. By default, nginx listens on port 80. Therefore, you could run:

docker run -d -p 8099:80 --name webserver nginx

To publish on port 8099 and send that traffic to an app inside the container listening on port 80.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!