Export All Files And Folders Out Of A Container

Run Detached Container

Create and start (docker run) the detached (--detach) the Docker image called special-project (--name special-project) based on the python:3.8-slim Docker image.

docker run --detach --name special-project python:3.8-slim

Export All Files And Folders Out Of Container

Export all files and folders (docker container export) from the container special-project and save them into a file (--output) called special-projects.tar.

docker container export --output special-project.tar special-project

A tar file has now been created with the container’s complete filesystem.