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