docker document copy file into container code example
Example 1: copy files from a docker container to the host machine using cmd
docker cp :/file/path/within/container /host/path/target
Example 2: copy file to docker container
docker cp foo.txt mycontainer:/foo.txt