I\'m trying to use a Docker container to run a PostgreSQL server, and connect with it from my host machine.
My configuration is:
Your docker host is a virtual machine, which has it's own IP affffdres. You can detect this IP address by entering the following command:
docker-machine ip
The answer will be something like 192.168.99.100
When you have mapped the ports using the -p 5432:5432 switch, you will be able to connect to postgres with any tool from your dev machine using the IP address mentioned.