Ever needed to extract the files in a Docker container?
Docker provides the
Exporting Docker files into a Tar Archive
The examples below use a Docker container called:
Swap this out with your own container as required.
hellojava.tar now contains a list of files found in the Docker image.
Taking it one step further
You can make this a bit better by extracting it into a new directory and untarring automatically: