Postbird - Connection Error

Asked

Viewed 621 times

-2

I created a container on Docker with the following command:

docker run --name database -e POSTGRES_PASSWORD=senha -p 5432:5432 -d postgres

When I try to access via Postbird, I get the following error: inserir a descrição da imagem aqui

What I’ve tried, but it didn’t work:

  1. Set the host field to localhost. Error: connect ECONNREFUSED.
  2. Set the host field to the ip that the Docker is initialized. Error: connect ECONNREFUSED.
  3. Create another container directed to door 5433. Error: connect ECONNREFUSED.

Has anyone been there? Could you help me?

1 answer

0

Guys, I solved it! D
In case someone has the same problem, the solution was the following: inserir a descrição da imagem aqui

I used this ip img to connect to Postbird. And I re-started the container with the commands:
Docker stop container name
Docker start container name

Browser other questions tagged

You are not signed in. Login or sign up in order to post.