[英]JBoss EAP Container Fails to Start
當我運行以下 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
我認為您需要將 Jboss dir 的 r/w 權限添加到 root 組,錯誤表示 ar/w 權限錯誤
嘗試將此添加到您的Dockerfile
USER root
RUN chgrp -R 0 $JBOSS_HOME && chmod -R g+rw $JBOSS_HOME
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.