【发布时间】:2020-04-04 20:16:14
【问题描述】:
server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
当我使用 docker exec ...
psql: error: could not connect to server: could not translate
host name "potgres" to address: No address associated with hostname
我的端口看起来是这样的:
0.0.0.0:5431->5431/tcp, 5432/tcp
即使我更改了 file.yml 中的端口号,也没有任何反应!
【问题讨论】:
标签: python-3.x postgresql ubuntu docker-compose