An easy way to handle this in docker is by using a host directory as data volume.
docker run -it --rm --name letsencrypt \
-v "/etc/letsencrypt:/etc/letsencrypt" ........
This way the /etc/letsencrypt folder of your current system is mounted into the docker container to /etc/letsencrypt and all generated files will be written to the filesystem of the host system.