[BUG] extends
and nondeterministic parsing of docker-compose.yml
#11435
Labels
extends
and nondeterministic parsing of docker-compose.yml
#11435
Description
Since a recent update, docker compose now parses compose files making use of the
extends
feature in a nondeterministic fashion. This is most clearly illustrated by runningdocker compose config
multiple times and seeing different results. However, this behavior does affect other commands such asdocker compose build
anddocker compose up
.Steps To Reproduce
With the following compose file,
run
docker compose config
a couple of times. Most of the time, the output is the expectedbut sometimes the output is different, e.g.
Note the missing
environment
key in thec
service. My guess is that this is due to theextends
key ofc
being resolved before theextends
key ofb
is resolved. In previous versions of docker/compose, the compose file would be consistently parsed according to my expectation every time.Compose Version
Docker Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: