Restore Postgres database from backup

I’m having trouble restoring a postgres database running inside docker-machine on OS X. I can’t figure out how to connect to the database.

I’ve posted my question on stackoverflow but no one has been able to help me yet.

Did you ever get this working? I am trying to restore a database from a dump and I can’t find anything in the documentation or online forums that explains how to do this. I don’t want to load it at start up, I want to restore it once the container is up already.