The connection attempt failed
santarinto opened this issue · 2 comments
santarinto commented
Hello, I can't connect to the container via a shared port, in this case we are talking about a Postgresql container
➜ ~ docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
mname * parallels Running tcp://10.211.55.3:2376 v19.03.12
➜ ~
And docker output
➜ ~ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
---//// -----
100692d8a461 xxxxxxxx.ru/postgres:12 "docker-entrypoint.s…" 16 minutes ago Up 16 minutes 0.0.0.0:5435->5432/tcp mname-test_postgres_1
➜ ~
Before all work on vbox driver. In just time connection error pgsql [08001] conn error
I apologize in advance if I take you away from work. May be i need setup shared port on paralles gui ?
legal90 commented
How do you try to connect?
If you want to connect from your Mac host, then you should use the VM's IP: 10.211.55.3:5435
or $(docker-machine ip mname):5435
Ref: #89 (comment)
santarinto commented
Yes, i connect by ip 10.211.55.3
. after some time, everything worked.