Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatible with Docker Compse 2.17.0 and up due to go-yaml/v3 #2054

Closed
DylanUnderwood opened this issue Mar 30, 2023 · 4 comments
Closed

Comments

@DylanUnderwood
Copy link

Self-Hosted Version

Any

CPU Architecture

Any

Docker Version

Any

Docker Compose Version

2.17

Steps to Reproduce

Run docker compose

Expected Result

Run as normal

Actual Result

yaml: unmarshal errors:
line 81: mapping key "<<" already defined at line 21

Event ID

No response

@hubertdeng123
Copy link
Member

Thanks for bringing this up. I will look into this

@DylanUnderwood DylanUnderwood changed the title Incampatable with Docker Compse 2.17.0 and up due to go-yaml/v3 Incompatible with Docker Compse 2.17.0 and up due to go-yaml/v3 Mar 31, 2023
@dlouzan
Copy link

dlouzan commented May 8, 2023

Related upstream change and solutions: docker/compose#10411

@bikingfreak
Copy link

bikingfreak commented May 9, 2023

I seem to have the same problem with version 2.17.3.
docker compose up -d
parsing /opt/docker-compose.yaml: yaml: unmarshal errors:
line 16: mapping key "container_name" already defined at line 5
line 17: mapping key "image" already defined at line 6
line 21: mapping key "restart" already defined at line 7
line 18: mapping key "volumes" already defined at line 12

@shadowlmd
Copy link

Looks like this is already fixed. I don't have any issues with Compose v2.18.1.

@github-actions github-actions bot locked and limited conversation to collaborators Feb 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Archived in project
Development

No branches or pull requests

5 participants