Skip to content

Missing filename in error message #13209

@DerBrunoIR

Description

@DerBrunoIR

Description

What is missing?

> docker compose up -d
yaml: line 2: did not find expected key

This error message should specify the errornous file.
In my personal project I have 6 compose.yaml files and I had to check all files just to find this indentation error.
For larger project this could become worse.

How to reproduce

Image

compose.yaml

include:
  - ./test/compose.yaml

test/compose.yaml

services:
  my-service:
    image: alpine # important comment
      ports: # indentation error
      - 8080:8080 # AIO admin interface

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