Oprea.Rocks Logo

Get updates on new articles, and other opportunities

Copy files from a Docker container to the host

I created a short video to help you understand the basics of using the docker cp command.

It is meant to help people who are using Docker understand how to copy a file from a running Docker container to their host machine. In my case, I'm using a container I built for a personal project, which creates PDF documents from websites. The generated document, resides exclusively inside the container. It is then copied using docker cp to my host machine, where I can open and inspect it.

Photo credits:

Matt BrownDockers sculpture