docker 部署容器异常,启动失败 #7324
Unanswered
TrueSaveWorldPig
asked this question in
Q&A
Replies: 1 comment
-
这应该是 Halo 使用的 JDK 基础镜像与 Docker 版本的兼容问题,通常升级 Docker 版本即可解决。 相关 issue:#5039 (comment)
从 2.13 升级 JDK 到 21 之后,应该就没有再改动过基础镜像。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
halo版本:halohub/halo:2.20.18
docker run 部署报错,内容如下:
我的docker版本:Docker version 19.03.13, build 4484c46
我的启动命令:
docker run -d -p 8090:8090 --name halo -v /mnt/external_drive/apps/halo:/root/.halo2 -e JVM_OPTS="-Xmx256m -Xms256m" halohub/halo:2.20.13 --spring.r2dbc.url=r2dbc:pool:mysql://192.168.2.104:3306/halo --spring.r2dbc.username=halo --spring.r2dbc.password=123456 --spring.sql.init.platform=mysql --halo.external-url=http://192.168.2.110:8090/ --server.port=8090
但是,我使用低版本:halohub/halo:2.20.13 启动成功;
是不是在2.20.13之后的版本中,修改了docker版本支持的部分
Beta Was this translation helpful? Give feedback.
All reactions