docker copy file from a container to another code example
Example 1: copy file from host to docker container
docker cp foo.txt mycontainer:/foo.txt
Example 2: docker copy files from container to host
docker cp <containerId>:/file/path/within/container /host/path/target