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