Quickly learn How to copy data from a Docker container with WhaleDeck Shorts. Clear, step-by-step guides for Docker.
The answer is quite simple. The following command shows how to copy the folder /foo/bar from the Docker container my_container to /home/backup on the local host.
docker container cp my_container:/foo/bar /home/backup