Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]dockerhub上镜像启动失败 #602

Closed
MartinH04 opened this issue Jun 4, 2024 · 3 comments
Closed

[BUG]dockerhub上镜像启动失败 #602

MartinH04 opened this issue Jun 4, 2024 · 3 comments
Assignees

Comments

@MartinH04
Copy link

联系方式

No response

MaxKB 版本

v1.1.3 & v1.2.0

问题描述

docker容器运行后抛出错误

重现步骤

运行:docker run -d --name=maxkb -p 8080:8080 1panel/maxkb:v1.1.3
日志:docker logs -f maxkb

期待的正确结果

初始化正常

相关日志输出

显示:
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"

附加信息

No response

@liqiang-fit2cloud
Copy link
Contributor

没遇到过,不过参考这个,可以试试用更高版本内核的操作系统,或者启动命令加上privileged=true。

@shaohuzhang1
Copy link
Contributor

这个是因为内存不够 默认pgsql需要占用宿主机内存的1/4 保证有足够的内存 或者修改pgsql的参数

@liqiang-fit2cloud
Copy link
Contributor

MaxKB-v1.6.0 会解决这个问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants