Is there some way to deploy .war files into Jboss-as7 running inside a docker container
Because my jboss server seems to fail after a docker commit.
Coul
I came up with another workaround.
docker exec -it jboss_1 bash
Execute this while in container:
cd /usr/local/share/jboss/standalone/configuration/standalone_xml_history/
rm -rf current
exit
Various jboss versions might have different directories with standalone_xml_history. For example on Jboss 6.4.0 it is /opt/jboss/EAP-6.4.0/domain/configuration/domain_xml_history/
Not a real solution, but a workaround:
supervisorctl stop jboss
mv /usr/local/share/jboss/standalone/configuration/standalone_xml_history/current /usr/local/share/jboss/standalone/configuration/standalone_xml_history/20140116-034913551
(or some other timestamp)docker commit -run='{"Cmd": ["/usr/bin/supervisord"]}' `dl` secondversion
That image (secondversion) then runs fine if you start it up.
I had the same problem and fixed it by deleting
/standalone/configuration/standalone_xml_history/current
Try adding this line in your docker file
RUN rm -rf /usr/local/share/jboss/standalone/configuration/standalone_xml_history/current