How to send files as arguments of docker commands?

docker

Solution

Start Docker with a mounted volume and use this to directory to manipulate files.

See: https://docs.docker.com/engine/tutorials/dockervolumes/

Problem

I'm not sure that I'm trying to do it the right way, but I would like to use docker.io as a way to package some programs that need to be run from the host. However these applications take filenames as arguments and need to have at least read access. Some other applications generate files as output and the user expects to retrieve those files. What is the docker way of dealing with files as program parameters?

Original source