Docker Registry and Delivery

docker image save

Write selected local image content and tags to a tar archive. Does not include runtime volumes or container writable layers. Use a fresh lab-owned path. Only available local platform variants are saved.

Formal Syntax & Structure

docker syntaxdocker
docker image save [OPTIONS] IMAGE [IMAGE...]

Parameters & Attributes

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

Return Value

CLI operation

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

Working Example

Example Snippetdocker
docker image save -o bm-demo.tar bm-demo:1
Docker Reference