How to copy a file from a running Docker container to host?

preview_player
Показать описание
This is a short demo on how to copy a file from a running Docker container to host.

I use DigitalOcean for all of my demos, you can use the link below to get a free $100 credit and spin up your own Linux servers!

Рекомендации по теме
Комментарии
Автор

Thank you! Was great to see an example with an actual image. Many thanks!

Paper
Автор

Hi, great tutorial! I am facing an issue. I have built a docker image that creates several csv files and stores them in a tarball when run. However when I want to use docker cp after running the image, it does not find the tarball. How do I retrieve the file?

hemadas
Автор

Hi bobby, I run a python script in container which produces an output, I can see logs in stdout but I am unable to generate output file in a container or host. Can you suggest ?

learnpuresecurity
Автор

Is this the way to copy a folder from your system to docker image?? Please tell me

Arry_Array