Skip to content

mocker images shows Zero KB / in 0 sec for every image — SIZE and CREATED never populated #75

Description

@KennethWKZ

mocker version: 0.7.2 (Homebrew) — macOS, Darwin 25.5.0, arm64

Summary

mocker images reports Zero KB in SIZE and in 0 sec in CREATED for every image, including ones pulled weeks earlier. Both columns appear to render an unset zero value rather than real data.

Reproduction

$ mocker images
REPOSITORY                                     TAG         IMAGE ID       CREATED    SIZE
ctxonly                                        latest      sha256:bdfd1   in 0 sec   Zero KB
docker.io/library/neo4j                        5.26        sha256:bc271   in 0 sec   Zero KB
docker.io/library/caddy                        latest      sha256:844f6   in 0 sec   Zero KB
ghcr.io/apple/container-builder-shim/builder   0.13.0      sha256:25be1   in 0 sec   Zero KB
docker.io/library/alpine                       3.20        sha256:d9e85   in 0 sec   Zero KB
...

Every row, 14 of 14. docker.io/library/caddy:latest was pulled well before this session and is ~22 MB.

The data is available from the backend

container image ls exposes only NAME / TAG / DIGEST, so a listing built from it alone has nothing to populate these columns with. But container image inspect has both:

$ container image inspect docker.io/library/caddy:latest
[ { "configuration": {
      "creationDate": "2026-06-22T20:12:24Z",
      ...
    },
    "id": "844f60b6...",
    "variants": [ { ... "size": 22731608 } ] } ]

creationDate is the real timestamp, and the variants[0] descriptor size of 22731608 (21.7 MB) matches the expected size for that image. So both columns are fillable — per-image inspect, or caching the values at pull/build time to avoid N inspect calls on a large listing.

Secondary: unknown should not render as a confident zero

Even where a value genuinely cannot be determined, Zero KB and in 0 sec are misleading — they read as measurements. <unknown> or - (upstream uses N/A) would make the gap obvious. As filed, the output prompted a real "are my images corrupt?" investigation before the cause turned out to be cosmetic.

Related: #69, #70, #71, #72, #73.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions