Copy a file from inside a running Docker container to the host

To copy a file from inside a running container to a location on the host, use:

docker cp containerid:/path/to/file/in/container /location/on/host

See docs here.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.