[英]JBoss EAP Container Fails to Start
When I run the following Dockerfile, the container responds with an error and exits.当我运行以下 Dockerfile 时,容器响应错误并退出。
If I comment out COPY
, the container starts with no error.如果我注释掉COPY
,容器启动时没有错误。
Do I need to configure something else to get the container to start and deploy the app?我是否需要配置其他内容才能让容器启动和部署应用程序?
Dockerfile: 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 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
I think you need to add r/w permission for Jboss dir to the root group, the error indicates ar/w permission errors我认为您需要将 Jboss dir 的 r/w 权限添加到 root 组,错误表示 ar/w 权限错误
try to add this to your Dockerfile
尝试将此添加到您的Dockerfile
USER root
RUN chgrp -R 0 $JBOSS_HOME && chmod -R g+rw $JBOSS_HOME
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.