docker jboss7 war commit. Server boot failed in an unrecoverable manner

后端 未结 3 1376
误落风尘
误落风尘 2021-02-19 23:39

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         


        
相关标签:
3条回答
  • 2021-02-19 23:53

    I came up with another workaround.

    1. Enter running docker container
      for example using this command
      docker exec -it jboss_1 bash
    2. 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/

    0 讨论(0)
  • 2021-02-19 23:56

    Not a real solution, but a workaround:

    1. ssh in
    2. supervisorctl stop jboss
    3. 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)
    4. exit the ssh
    5. docker commit -run='{"Cmd": ["/usr/bin/supervisord"]}' `dl` secondversion

    That image (secondversion) then runs fine if you start it up.

    0 讨论(0)
  • 2021-02-20 00:14

    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
    
    0 讨论(0)
提交回复
热议问题