Cannot Connect to Postgres Running in Docker from PGAdmin Running in Windows Host

I read all the questions about this, like this one , but that does not help.

Host: Windows 10, launch of VirtualBox and PgAdmin.

I installed Docker correctly and run several containers without any problems. Now I tried to configure Postgres. I tried two:

1 https://hub.docker.com/r/paintedfox/postgresql/

2 https://hub.docker.com/_/postgres/

And both have the same problem. When I try to connect to PgAdmin, it says that the server is not listening.

When I run docker inspect postgres, I see

"NetworkSettings": {"Bridge": "," SandboxID ":" 6ad76f4d61017c44f814c5ec7ab9081a650d925a46c2b69902c4f0e5209076ce "," HairpinMode ": false," LinkLocalIPv6Address ":", "LinkLfplplp32:}" LinkLocalPlp32}} ": LinkLocalPlp32plp32}} SandboxKey ":","GlobalIPv6PrefixLen": 0, "IPAddress": "172.17.0.2",

IP- PGAdmin.

-p 5432: 5432 127.0.0.1:5432.

VirtualBox .

, Kitematic: 192.168.99.100

+4
2

, , Kitematc "IP " "" URL- ACCESS .

Docker Port '5432/tcp'

, IP- , :

192.168.99.100:32768

IP PGAdmin, .

FYI, IP - IP-, :

docker-machine ip default
+5

, :

docker run -p 32768:5432 my-postgres

postgres <mapped-ip>:32768 ( IP 192.168.99.100)

+1

Source: https://habr.com/ru/post/1627772/


All Articles