JBoss EAP容器无法启动

时间:2020-07-21 16:04:38

标签: docker jboss containers

当我运行以下Dockerfile时,容器会以错误响应并退出。

如果我将COPY注释掉,则容器开始时没有错误。

我是否需要配置其他内容以使容器启动并部署应用?

Dockerfile:

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

1 个答案:

答案 0 :(得分:0)

我认为您需要将Jboss dir的读/写权限添加到根组中,该错误表示读/写权限错误

尝试将其添加到您的Dockerfile

USER root
RUN chgrp -R 0 $JBOSS_HOME && chmod -R g+rw $JBOSS_HOME