JBoss EAP 容器启动失败
JBoss EAP Container Fails to Start
当我运行以下Dockerfile时,容器响应错误并退出。
如果我注释掉 COPY
,容器启动时没有错误。
我是否需要配置其他东西来让容器启动和部署应用程序?
Docker 文件:
FROM registry.redhat.io/jboss-eap-7/eap73-openjdk11-openshift-rhel8
COPY containerPocApp.war /opt/eap/standalone/data/content/containerPocApp.war
EXPOSE 8080
错误:
ERROR Error applying /tmp/cli-configuration-script-1595016439.cli CLI script.
00:00:00,000 INFO [org.jboss.modules] (CLI command executor) JBoss Modules version 1.10.0.Final-redhat-00001
Cannot start embedded server: WFLYEMB0022: Cannot invoke 'start' on embedded process: WFLYSRV0231: Could not read or create the server UUID in file: /opt/eap/standalone/data/kernel/process-uuid: /opt/eap/standalone/data/kernel
我认为您需要为 Jboss 目录添加 r/w 权限到根组,错误表明 r/w 权限错误
尝试将此添加到您的 Dockerfile
USER root
RUN chgrp -R 0 $JBOSS_HOME && chmod -R g+rw $JBOSS_HOME
当我运行以下Dockerfile时,容器响应错误并退出。
如果我注释掉 COPY
,容器启动时没有错误。
我是否需要配置其他东西来让容器启动和部署应用程序?
Docker 文件:
FROM registry.redhat.io/jboss-eap-7/eap73-openjdk11-openshift-rhel8
COPY containerPocApp.war /opt/eap/standalone/data/content/containerPocApp.war
EXPOSE 8080
错误:
ERROR Error applying /tmp/cli-configuration-script-1595016439.cli CLI script.
00:00:00,000 INFO [org.jboss.modules] (CLI command executor) JBoss Modules version 1.10.0.Final-redhat-00001
Cannot start embedded server: WFLYEMB0022: Cannot invoke 'start' on embedded process: WFLYSRV0231: Could not read or create the server UUID in file: /opt/eap/standalone/data/kernel/process-uuid: /opt/eap/standalone/data/kernel
我认为您需要为 Jboss 目录添加 r/w 权限到根组,错误表明 r/w 权限错误
尝试将此添加到您的 Dockerfile
USER root
RUN chgrp -R 0 $JBOSS_HOME && chmod -R g+rw $JBOSS_HOME