Buddy Code
Create account ↗
All tools
Free to use · No sign-up

OCI image archive inspector

Inspect local OCI and Docker-save archives, layer changes and the final path inventory without installing Docker.

Inspect an OCI layout archive or Docker-save TAR, optionally gzip-compressed. No Docker daemon, registry connection or upload. No archive member is written to disk.

128 MiB input; 256 MiB expanded outer archive; 128 MiB per layer; 512 MiB total layer expansion; 100 layers and 50,000 entries. Zstd and sparse TAR are unsupported.

READ THE LAYERS

Why a deleted file still takes space

An image is built from ordered filesystem changes. A later layer can hide a file from the final inventory while its original payload remains in an earlier layer. The local example above makes this visible.

The built-in two-layer exampleChoose “Inspect local example” to reproduce these results.
1 · Base layer

Two files added

  • app/old.txt9 bytes
  • app/keep.txt8 bytes

17 bytes of regular-file payload.

2 · Next layer

Add one, hide one

  • app/new.txt9 bytes
  • app/.wh.old.txtwhiteout

The empty whiteout hides the earlier app/old.txt.

3 · Final inventory

Two files remain

  • app/new.txt9 bytes
  • app/keep.txt8 bytes
  • app/directory

17 payload bytes retained. 9 superseded payload bytes.

A whiteout is a deletion marker, so it is absent from the final paths. The superseded-byte estimate is uncompressed file payload, excluding TAR headers and padding. It is not compressed image size or reclaimable disk space.

Which archive do I need?

OCI image layout in TAR
Contains oci-layout, index.json and content-addressed blobs. This inspector needs all referenced image content inside the supplied archive.
Docker-save TAR
Contains image metadata and layers. To save an image you already have locally, replace the image name in:docker image save --output image.tar IMAGE:TAG
A container export is different
docker container export produces a container filesystem archive without the image layer history needed here. Use an image archive for layer inspection.

A practical inspection workflow

  1. Choose a TAR or gzip archive. Select the image if several are present, then inspect it.
  2. Compare stored and expanded layer sizes to find layers worth reviewing.
  3. Choose a layer and read its added, replaced and removed paths. “Replaced” describes an entry supplied again, not a bytewise comparison.
  4. Filter the final inventory to check whether a path survives. Download JSON when you need the complete bounded report.

An opaque marker, .wh..wh..opq, hides a directory’s lower-layer children. Entries added in that same layer remain visible. Digest checks establish archive consistency, not who published the image or whether its contents are safe.

Format references: OCI layer changes and whiteouts, OCI image layout, Docker image save and container export.

What it does

Inspect local OCI and Docker-save archives, layer changes and the final path inventory without installing Docker.

How to use it

  1. Select a TAR or gzip archive, or inspect the built-in local example. Archives with several images offer an image selector.
  2. Inspect per-layer changes, filter the final paths and export a JSON report. Regular files, directories and link metadata are listed; no files are extracted or executed.
  3. Follow the illustrated two-layer walkthrough to see how whiteouts remove paths from the final inventory. Docker-save image archives preserve layers; Docker-export container filesystems do not.
  4. Processing stays in your browser. No registry connection, image pull, upload or account required.

Example

The local example has two layers: app/old.txt is removed by a whiteout, app/keep.txt remains and app/new.txt is added.

Methodology

TAR checksums and bounds are validated. OCI SHA-256 descriptors and image layer diff IDs are verified. Lower-layer whiteouts and opaque directories are applied before same-layer entries. Final paths and per-layer replacements are reported without extracting files or running container code.

Limitations

128 MiB input, 256 MiB expanded outer TAR, 128 MiB per layer, 512 MiB total layer expansion, 100 layers and 50,000 entries. Plain TAR/gzip only; no zstd, sparse TAR, external blobs or non-SHA-256 descriptors. Links/devices are metadata, not emulated. Replaced does not mean content changed. Hidden payload bytes are not reclaimable disk space. 20-million-character report and 30-second worker deadline. Digest checks do not prove publisher trust.

Automation

This tool runs in your browser. No upload API or MCP endpoint is available.

View capabilities and documentation

Reference updated

Join the conversation

Helpful tips, questions, and ideas for making this tool better.

Loading discussion…