This answer to another question shows how to start a stopped container with another command. Here are the commands to list files in a stopped container.
- Commit the stopped container to a new image:
test_image
.docker commit $CONTAINER_ID test_image
- Run the new image in a new container with a shell.
docker run -ti --entrypoint=sh test_image
- Run the list file command in the new container.
docker exec --privileged $NEW_CONTAINER_ID ls -1 /var/log