How to Extract Files from Docker Container

Donotalo
10.3K views

Open Source Your Knowledge, Become a Contributor

Technology knowledge has to be shared and made accessible for free. Join the movement.

Create Content

Files

Complete files used in this tutorial are available here: https://bitbucket.org/donotalo/workspace/snippets/bqAXae/extract-files-from-docker-container

Export Docker Container's Filesystem to a tar Archive

It's possible to extract the full filesystem of a Docker container to a tar archive using docker export command like below:

docker export --output ${filename} ${container_name}
Open Source Your Knowledge: become a Contributor and help others learn. Create New Content