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

后端 未结 3 1435
误落风尘
误落风尘 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: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.

提交回复
热议问题