我有一个数据库的备份,我将恢复到在docker容器内运行的postgres数据库.
我在OS X上使用docker-machine.
Postgres图像是postgres:9.4.
这是我到目前为止提出的脚本:
pg_restore --verbose --clean --no-acl --no-owner \ -h tcp://`docker-machine ip default`:5432 \ -U postgres \ -d tonsser-api_development latest.dump
但这不起作用.我收到错误:
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
解决方法
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。