尽管我已经按照几个不同的教程和官方文档操作,但是每当我尝试在容器内安装PostgreSQL时,之后都会收到以下信息:
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
我在 Stack Overflow 和互联网上查看了多个问题,但没有找到答案。
/var/lib/postgresql/data
的位置链接到外部某个位置。 - Vasspilka:
实现,具体操作如何呢? - Vincent Buscarello