Skip to content

image inspect output is not Docker-compatible #24

@jahirvidrio

Description

@jahirvidrio

mocker image inspect and mocker inspect --type=image produce different output formats (they should be identical, as they are in Docker), and neither is Docker-compatible.

Version: Mocker v0.3.2

Root Cause

Data layer:

  • ImageInfo model only has 6 fields (id, repository, tag, labels, size, created)
  • ImageManager.toImageInfo() stubs size: 0 and created: Date() instead of reading real metadata

Serialization layer:

  • ImageInspect.swift builds its own JSONEncoder() (no array wrapping, no ISO8601)
  • Inspect.swift uses TableFormatter.printJSONArray (array + ISO8601)
  • No shared serializer (two commands diverge)

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