我使用参数POSTGRES_PASSWORD=postgres扩展postgres镜像,这样我的派生容器就已经有了一个默认密码,使用docker build和dockerfile。每当我从postgres生成的派生图像在容器上运行psql -U postgres时,我都会得到: could not connect to server: No such file or directory在我的
我正在尝试使用postgres docker镜像创建一个测试数据库,正如here所解释的那样。不同之处在于我使用docker run -d --net host --name my-postgres-container my-postgres-image来运行它。当我尝试使用Dbeaver连接到数据库时,我得到了FATAL: password authentication failed for user "postgres"。如果我尝试不使用