Connecting to postgresql localhost server on mac osx docker system

I am having difficulty connecting my local docker container to my local postgres database I am using mac osx el capitan and Docker on Mac via Quickstart Terminal which starts Docker Machine