Just a short reminder, as I use this blog also as my digital brain:
To copy files from a docker container to your host, one can use:

sudo docker cp <your containerId>:/path/in/container /localhost/path/target

Of course, you can define already in the Dockerfile, which files should be added to a container, but this way, one can access files in the container during runtime (for instance, log files).