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] CONTAINERParameters & Attributes
| Name | Type | Description |
|---|---|---|
| -o, --output | string | Write 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