copy file in docker using ansilbe code example
Example 1: copy file from docker container to host
docker cp :/file/path/within/container /host/path/target
Example 2: copy file to docker container
docker cp foo.txt mycontainer:/foo.txt
docker cp :/file/path/within/container /host/path/target
docker cp foo.txt mycontainer:/foo.txt