logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

docker-container-export - Export a container's filesystem as a tar archive

Description

       Export  the  contents  of  a container's filesystem using the full or shortened container ID or container
       name. The output is exported to STDOUT and can be redirected to a tar file.

       Stream to a file instead of STDOUT by using -o.

Examples

       Export the contents of the container called angry_bell to a tar file called angry_bell.tar:

       $ docker export angry_bell > angry_bell.tar
       $ docker export --output=angry_bell-latest.tar angry_bell
       $ ls -sh angry_bell.tar
       321M angry_bell.tar
       $ ls -sh angry_bell-latest.tar
       321M angry_bell-latest.tar

Name

       docker-container-export - Export a container's filesystem as a tar archive

Options

-h, --help[=false]      help for export

       -o, --output=""      Write to a file, instead of STDOUT

See Also

docker-container(1)

Docker Community                                    Feb 2025                                           DOCKER(1)

Synopsis

dockercontainerexport[OPTIONS]CONTAINER

See Also