val*_*app 5 postgresql ubuntu circleci postgresql-initdb docker-compose
我在 Circleci 上使用 docker-compose 来启动一个 postgres 容器,其中安装了一堆 sql 文件/docker-entrypoint-initdb.d/。我正在使用 ubuntu 机器映像:ubuntu-2004:202010-01,但收到错误:
popen failure: Cannot allocate memory
initdb: error: program "postgres" is needed by initdb but was not found in the same directory as "/usr/lib/postgresql/15/bin/initdb"
Run Code Online (Sandbox Code Playgroud)
它一直在醒来,但在某个时候它停止了这样做。对我可以尝试什么有什么建议吗?我已经尝试过一些更大的resource_type(即从中型到大型)和其他一些 ubuntu 机器映像。
小智 8
所有版本(包括最新版本)都遇到此问题。15-bullseye当我尝试使用这张图片来解决问题时,我被困了将近一天。
这是我得到解决方案的github开放问题: https://github.com/docker-library/postgres/issues/1099#issuecomment-1593228770
| 归档时间: |
|
| 查看次数: |
4997 次 |
| 最近记录: |