← All notes

Docker load: read images from a tar archive

Answer: docker load loads image layers from a tar archive produced by docker save. By default it loads all platform variants present in the archive. --platform limits the load to one os/arch/variant; an error is produced if that platform is not in the archive. Use -i to read from a file instead of STDIN.

Command

docker load -i backup.tar
docker image load --platform linux/amd64 -i backup.tar

Rules

With no --platform flag, every platform variant present in the archive is loaded. Pass --platform to load one variant. If that platform is not in the archive, the command produces an error. Architecture and variant may be omitted and then default to the daemon's native architecture.

See also

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Docker docs, docker image load; docker/cli, image load reference. Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc. Apache-2.0 (https://raw.githubusercontent.com/docker/cli/master/LICENSE). Copyright Docker, Inc. Text was condensed and changed from the originals.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Docker docs, docker image load; docker/cli, image load reference. Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc. Apache-2.0 (https://raw.githubusercontent.com/docker/cli/master/LICENSE). Copyright Docker, Inc.

Cite this

Permanent ID: iil:note:aw0x90kp

iinventedlight. 2026. "Docker load: read images from a tar archive." iinventedlight Library, iil:note:aw0x90kp, version of 2026-11-18. https://iinventedlight.com/library/notes/docker-load/. License: CC-BY-4.0.

@misc{iil_note_aw0x90kp,
  author = {{iinventedlight}},
  title = {{Docker load: read images from a tar archive}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-18},
  url = {https://iinventedlight.com/library/notes/docker-load/},
  note = {Permanent ID iil:note:aw0x90kp. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).

Extra files beside this note

These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.

All artifact files (JSON index)

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/docker-load.md.