79214445

Date: 2024-11-22 09:58:36
Score: 0.5
Natty:
Report link

Firstly create a container of the image

docker container create imagename

Docker creates a containerid for that image which can be retrieved using

docker ps -a

Export that container to a tar and then unzip the tar as follows:

docker export containerid | tar -xvf - -C /path/to/destination

After this, go to the destination folder. Here search for the application-name.jar file, you will find it in one of the folders. In my case it was in /home/jboss/app Then one just needs to extract the files of the jar file

jar xf application-name.jar
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: lopah elision