I\'m trying to use a Docker container to run a PostgreSQL server, and connect with it from my host machine.
My configuration is:
I had a similar issue. My problem was simply 0.0.0.0 not mapping to localhost so I just had to add to psql
psql --host=0.0.0.0
This is presuming
docker port
outputs
5432/tcp -> 0.0.0.0:5432