Now that I found a way to expose host files to the container (-v option) I would like to do kind of the opposite:
How can I edit files from a running container with
docker run -it -name YOUR_NAME IMAGE_ID /bin/bash $>vi path_to_file