Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

270
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda