You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
❯ docker buildx bake --file ./docker-compose.example.yml
[+] Building 0.0s (0/0)
error: services.example-container.depends_on must be a list
Here's docker-compose:
❯ docker-compose build --file ./docker-compose.example.yml
Build or rebuild services.
Services are built once and then tagged as `project_service`,
e.g. `composetest_db`. If you change a service's `Dockerfile` or the
contents of its build directory, you can run `docker-compose build` to rebuild it.
Note that docker-compose fails but for unrelated reasons - in a 'real' dockerc-compose.yml it does in fact work.
Hi @colin-grapl, I believe this is because of changes we've made to the Compose spec without updating the parser in buildx. I've created a ticket to track using the compose-spec/compose-go parser: #634
The problem: Given a valid docker-compose.yml with a
depends_on
conditiondocker buildx bake
rejects the file.Here's a valid docker-compose.example.yml
You can repro with:
Here's docker-compose:
Note that docker-compose fails but for unrelated reasons - in a 'real' dockerc-compose.yml it does in fact work.
Here's the relevant bit of the compose file spec:
https://github.com/compose-spec/compose-spec/blob/master/spec.md#depends_on
The text was updated successfully, but these errors were encountered: