Complete files used in this tutorial are available here: https://bitbucket.org/donotalo/workspace/snippets/bqAXae/extract-files-from-docker-container
It's possible to extract the full filesystem of a Docker container to a tar archive using docker export command like below:
docker export
docker export --output ${filename} ${container_name}
The #1 tech hiring platform