OCI image archive inspector
Inspect local OCI and Docker-save archives, layer changes and the final path inventory without installing Docker.
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.
Two files added
app/old.txt9 bytesapp/keep.txt8 bytes
17 bytes of regular-file payload.
Add one, hide one
app/new.txt9 bytesapp/.wh.old.txtwhiteout
The empty whiteout hides the earlier app/old.txt.
Two files remain
app/new.txt9 bytesapp/keep.txt8 bytesapp/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.jsonand 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 exportproduces a container filesystem archive without the image layer history needed here. Use an image archive for layer inspection.
A practical inspection workflow
- Choose a TAR or gzip archive. Select the image if several are present, then inspect it.
- Compare stored and expanded layer sizes to find layers worth reviewing.
- Choose a layer and read its added, replaced and removed paths. “Replaced” describes an entry supplied again, not a bytewise comparison.
- 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
- Select a TAR or gzip archive, or inspect the built-in local example. Archives with several images offer an image selector.
- 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.
- 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.
- 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 documentationReference updated
Join the conversation
Helpful tips, questions, and ideas for making this tool better.
Loading discussion…