copy a file from docker container to host when a file is created immediately in container code example
Example: copy files from a docker container to the host machine using cmd
docker cp :/file/path/within/container /host/path/target
docker cp :/file/path/within/container /host/path/target