List the files of a Container
To export the files of a container, use the command "docker export".
Let's create a container and list its contents:
If you look at the Dockerfile of the "hello-world" image:
You can see that it only copy the "hello" file which is the only non-empty file in the container.
The other files and directories in the container are mandatory and Docker will automatically bind-mount them from the Docker host.