Skip to content

[BUG] docker compose images --format json is now a map and no longer a list #12916

@felixfontein

Description

@felixfontein

Description

Until recently, docker compose images --format json resulted in a list of JSON objects, with one image per JSON object. Now docker compose images --format json results in a map that maps image names to the image JSON object.

I think this got introduced in 2.37.0, since this wasn't the case in 2.36.2.

Since this isn't mentioned in the changelog (neither as a breaking change or as anything else), I guess this is a bug.

Steps To Reproduce

Run docker compose images --format json.

Compose Version

2.37.0

Docker Environment

doesn't matter

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions