postgresql - Cannot connect to Postgres running in Docker from PGAdmin running on Windows Host -


i have read questions on this, like one, not help.

host: windows 10, running virtualbox , pgadmin.

i have setup docker correctly , run few containers without issue. tried setup postgres. tried two:

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

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

and both have same issue. when try connect pgadmin, says server not listen.

when run docker inspect postgres see

"networksettings": { "bridge": "", "sandboxid": "6ad76f4d61017c44f814c5ec7ab9081a650d925a46c2b69902c4f0e5209076ce", "hairpinmode": false, "linklocalipv6address": "", "linklocalipv6prefixlen": 0, "ports": { "5432/tcp": null }, "sandboxkey": "/var/run/docker/netns/6ad76f4d6101", "secondaryipaddresses": null, "secondaryipv6addresses": null, "endpointid": "3f14630554c972ac875cbb384725c6970d1d4d5acfba7cbc05e416b5b22f0056", "gateway": "172.17.0.1", "globalipv6address": "", "globalipv6prefixlen": 0, "ipaddress": "172.17.0.2",

i have tried ip address host in pgadmin.

i have tried setting container -p 5432:5432 , connecting 127.0.0.1:5432.

i have tried setting port forwarding in virtualbox container.

i tried machine host, shown in kitematic: 192.168.99.100

i noticed in kitematc in ip & ports section on home tab access url not set.

under docker port shows '5432/tcp'

so clicked ip address next , set , shows:

192.168.99.100:32768

i put ip , port pgadmin , can connect container.

fyi ip same ip returned by:

docker-machine ip default 

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -