我有一个包含安装了Postgres的Docker镜像,在尝试运行它时出现以下错误信息:
我尝试了以下操作:db | 2018-11-27 08:29:28.849 UTC [2808] FATAL: no pg_hba.conf entry for host "172.x.x.x", user "postgres", database "postgres", SSL off
- 更改IP并使用当前主机的IP
- 在设置Postgres时,输入:
echo -e "host all all 0.0.0.0/0 trust"
Dockerfile
吗? - mbuechmann