I use to copy directories from host to containers extensively before pushing them to a repository. Sometimes we may need to monitor the filenames getting pushed/copied during the Jenkins build.
How can i see what files are getting copied during a copy operation using "docker cp" ?
There is nothing that docker provides but if your directories are empty then you can try and print what is there after the copy operation.
docker cp a b
docker exec container ls -alhR /your/path
Or you can print the same on the host side before copying. Because cp will only copy what you provide it. So either print it before or after copying. Before make more sense to me
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With