The cp
command can be used for that. For example:
docker cp foo.txt mycontainer:/foo.txt
docker cp mycontainer:/foo.txt foo.txt
https://docs.docker.com/engine/reference/commandline/cp/
http://blog.csdn.net/yangzhenping/article/details/43667785