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

260
Visualizações
firebase serve in docker container not visible to host os

Running in a docker container with the ports 9005 available to the host os and when i run

firebase serve -p 9005

and then try to access this from the host os (windows)

using http://localhost:9005 I get an empty response

about 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

to force firebase serve to be visible you have to specify it to force it to bind to the address 0.0.0.0 otherwise the bind defaults to localhost

so you need to run

firebase serve -p 9005 -o 0.0.0.0

Make sure that 9005 is exposed and published using the docker command line option -p

about 4 years ago · Santiago Trujillo Relatório

0

For your host is the localhost e.g. 127.0.0.1, for the docker container is localhost maybe 127.0.0.1, too. But these are not the same these are two different things!

You have to configure a process running in a docker container to use all interfaces this is called 0.0.0.0 this is not the localhost.

firebase serve -p 9005 -o 0.0.0.0

Then you have to expose the port, in the above example 9005. See https://docs.docker.com/engine/reference/commandline/run/#publish-or-expose-port--p---expose

docker run --expose 9005 $CONTAINER $PARAMS

or in the Dockerfile with something like that:

EXPOSE 9005/tcp
EXPOSE 9005/udp 

See here: https://docs.docker.com/engine/reference/builder/#expose

about 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