Docker Registry and Delivery

docker container export

Export container filesystem as a tar archive excluding mounted volume contents. Does not preserve original image history or container configuration. No transaction-consistent backup is implied.

Formal Syntax & Structure

docker syntaxdocker
docker container export [OPTIONS] CONTAINER

Parameters & Attributes

NameTypeDescription
-o, --outputstringWrite archive to a file instead of standard output.

Return Value

CLI operation

Exit status indicates command outcome; verify the intended state separately.

Working Example

Example Snippetdocker
docker container export -o bm-rootfs.tar bm-lab
Docker Reference