Skip to content

[BUG] config command format JSON broken #11627

@ramundomario

Description

@ramundomario

Description

Config command seems to ignore the format option, printing the content always in YAML

We're experiencing this behaviour since few hours ago with v2.25.0, rollbacking to previous version (v2.24.7) fixed the issue

Steps To Reproduce

  1. Execute the command docker compose -f docker-compose.yml config --format=json
  2. Output is in YAML instead of JSON

Compose Version

Docker Compose version v2.25.0

Docker Environment

No response

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