我正在尝试创建可用于战争部署的jboss / wildfly图像,下面是我用于创建图像的docker文件。
但是当我用&#34运行容器时,docker运行-p 9990:9990 hello"命令jboss服务器正在盯着但部署文件夹中的战争没有部署。
docker file
FROM jboss / wildfly
ADD standalone-full-poc.xml / opt / jboss / wildfly / standalone / configuration /
ADD模块/ opt / jboss / wildfly / modules /
RUN /opt/jboss/wildfly/bin/add-user.sh admin admin @ 123 --silent
ADD eTransfer.war / opt / jboss / wildfly / standalone / deployments /
CMD [" /opt/jboss/wildfly/bin/standalone.sh" ;," -c"," standalone-full-poc.xml", " -b"," 0.0.0.0"," -bmanagement"," 0.0.0.0"]
答案 0 :(得分:0)
问题已解决:)由于未在standalone-full-poc.xml
中添加Deployment Scanner而发生了这种情况