I have a backup of a database that I would to restore to a postgres database running inside a docker container.
I'm using docker-machine on OS X.
Postgres image is postgres:9.4.
This is the script I've come up with so far:
pg_restore --verbose --clean --no-acl --no-owner \
-h tcp://`docker-machine ip default`:5432 \
-U postgres \
-d tonsser-api_development latest.dump
But that doesn't work. I get the error:
pg_restore: connecting to database for restore
pg_restore: [archiver (db)] connection to database "tonsser-api_development" failed: could not translate host name "tcp://192.168.99.100:5432" to address: nodename nor servname provided, or not known