Skip to content

[BUG] v5.1.4 error -> yaml: map merge requires map or sequence of maps as the value #13812

@Elendiar

Description

@Elendiar

Description

After updating docker desktop to latest get an error trying to compose up yaml file: line 1: yaml: map merge requires map or sequence of maps as the value

File starts with:

x-build-base: &build-base
  context: ..

...

***:
  build:
        <<: *build-base

I fix this downloading previous version (v5.1.2) of docker-compose.exe for windows from github and it works as intended, so issue is with new 5.1.4 version...

Steps To Reproduce

No response

Compose Version


Docker Environment


Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions