Search notes:

docker cp

Copy a file or directory from a container to the local filesystem or vice versa:
docker cp $CONTAINERNAME:/home/rene/readme.txt ~/readme.txt
Container paths are relative to the container's root directory (which implies that the initial forward slash / (unix) can be omitted).
Local paths, on the other hand, can be either absolute or relative.
The file/directory can be copied even if the container is stopped.
As far as I can tell, it's not possible to use the * for file globbing.

See also

The -v option of docker run allows to bind («share») a volume between the host and the container.

Index