gpt4 book ai didi

docker - JBoss EAP 容器无法启动

转载 作者:行者123 更新时间:2023-12-02 18:06:45 26 4
gpt4 key购买 nike

当我运行以下 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

关于docker - JBoss EAP 容器无法启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63018488/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com