Back
Close

How to Extract Files from Docker Container

Donotalo
7,348 views

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}
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io