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

2.3K
Visualizações
Docker Error - 5432: bind: address already in use

I used to be able to run docker-compose using 5432:5432 port mapping, but am recently getting this error:

Error starting userland proxy: listen tcp 0.0.0.0:5432: bind: address already in use

I've gone through all of the older posts relating to this issue but have yet to be able to solve this.

I've been driving myself mad with this error for the past week trying to figure out how to stop whatever process is running with no avail.

I've tried running

lsof -i tcp:5432

which returns no results (as long as my pgadmin/server is not running)

I've also seen other posts mention running

netstat -anp tcp | grep 5432

which does return two lines:

tcp4       0      0  *.5432                 *.*                    LISTEN     
tcp6       0      0  *.5432                 *.*                    LISTEN 

But I'm not entirely sure what to do with that output?

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

0

Run lsof -i tcp:5432 with sudo rights:

sudo lsof -i tcp:5432

A process (very likely PostgreSQL) is listening on port 5432, preventing another to listen on that port. Stop the process, e.g. with systemctl, then you will be able to start your docker PostgreSQL.

over 4 years ago · Santiago Trujillo Relatório

0

There is a possibility that this might be happening due to multiple instances of postgres running on your machine.

In my case, I had previously installed postgres which was always running on the machine because of which docker-based postgres was unable to start due to the above error. Uninstalling previously installed postgres helped to resolve the issue.

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