docker save
The command that writes one or more images to a tar archive, in the open container image layout, so they can be moved without a registry.
In more detail
The archive holds an index, content-addressed blobs and a layout marker, plus a legacy manifest file for older tools. docker load reads it back, and other conforming tools can read it too.
Example
docker save -o api.tar m07l04-api:1.0.0Related terms
- OCI image specification — The standard that defines what an image is: layers, a configuration and a manifest, all addressed by digest.
- image index — A list that points to several versions of the same image, one per processor architecture and operating system.
- image manifest — A small JSON document that lists the configuration and layers making up one image, each by digest.
- content addressing — Storing and finding data by a hash of its content instead of by a name someone chose.
Taught in
- Container Images The Exam Way — Certified Kubernetes Application Developer (CKAD) Exam Prep
- From Local Containers To Kubernetes — Docker Architecture & Production Containers