I can not connect to my Docker database from pgAdmin 4

0
  • With the command "docker-machine ip" I get the ip and I enter it in the "Host name / adreess" field.

  • I get the following error.

  • This is the port of the database.

    
asked by Victor H. Zevallos 06.11.2017 в 18:35
source

2 answers

0

You have to expose the port of the container to the host. when you do the docker run the option -p: is to expose ports ex:

docker run -p 5432:5432 postgres:latest
    
answered by 07.11.2017 / 14:27
source
0

I have the same problem I have executing the image, but I put stop and I run with the port and I get an error, or where I should change the port of an existing image of an application.

    
answered by 08.06.2018 в 18:44