www.LinuxHowtos.org
DOCKER
Section: Docker User Manuals (1)Updated: Jun 2025
Index Return to Main Contents
NAME
docke-containe-export- Export a container's filesystem as a tar archive
SYNOPSIS
docker container export [OPTIONS] CONTAINER
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_bel-latest.tar angry_bell $ ls-sh angry_bell.tar 321M angry_bell.tar $ ls-sh angry_bel-latest.tar 321M angry_bel-latest.tar
See also
docke-import(1) to create an empty filesystem image and import the contents of the tarball into it, then optionally tag it.
OPTIONS
-o, -output="" Write to a file, instead of STDOUT
SEE ALSO
docke-container(1)