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
There's a base docker-compose.yml which defines service app and a docker-compose.testing.yml which also defines services app and uses extends: with file: docker-compose.yml and service: app (names overlap). The docker-compose.testing.yml wants to remove the parent's volumes: section with volumes: !reset [] but it is not being removed.
It's so weird, I have found nothing which would cause this.
Please note that in both files the service is called app but there's no error from the spec if app extends app so that should not be a reason for this problem.
The text was updated successfully, but these errors were encountered:
bf
changed the title
[BUG] volume: !reset [] not applied w/ extends: when services have same name
[BUG] volume: !reset [] not applied w/ extends (services have same name)
Sep 2, 2023
bf
changed the title
[BUG] volume: !reset [] not applied w/ extends (services have same name)
[BUG] volume: !reset [] not applied w/ extends (services same name)
Sep 2, 2023
Description
There's a base
docker-compose.yml
which defines serviceapp
and adocker-compose.testing.yml
which also defines servicesapp
and usesextends:
withfile: docker-compose.yml
andservice: app
(names overlap). Thedocker-compose.testing.yml
wants to remove the parent'svolumes:
section withvolumes: !reset []
but it is not being removed.Steps To Reproduce
docker-compose.yml
docker-compose.testing.yml
running
docker-compose -f docker-compose.testing.yml config
shows:It should not have the
volumes
sectionCompose Version
Docker Environment
Anything else?
It's so weird, I have found nothing which would cause this.
Please note that in both files the service is called
app
but there's no error from the spec ifapp
extendsapp
so that should not be a reason for this problem.The text was updated successfully, but these errors were encountered: