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
volumes_from is ignored in a service defined locally in docker-compose.yml file when extends is used in the same service. Regardless of the contents of the file which extends the service.
This is only present in 2.32.1 and is not present in 2.31.0.
volumes_from and depends_on are never shared between services using extends. These exceptions exist to avoid implicit dependencies; you always define volumes_from locally. This ensures dependencies between services are clearly visible when reading the current file. Defining these locally also ensures that changes to the referenced file don't break anything.
As I read it, it should be possible to use volumes_from as long as it is not in the file which extends the service.
Steps To Reproduce
Issue is only in Docker compose v2.32.1. Not Present in Docker compose v2.31.0.
Description
volumes_from is ignored in a service defined locally in docker-compose.yml file when extends is used in the same service. Regardless of the contents of the file which extends the service.
This is only present in 2.32.1 and is not present in 2.31.0.
I don't think that was the intended implementation of:
compose-spec/compose-go#718
As per manual:
As I read it, it should be possible to use volumes_from as long as it is not in the file which extends the service.
Steps To Reproduce
Issue is only in Docker compose v2.32.1. Not Present in Docker compose v2.31.0.
docker-compose.yml similar to:
After doing
docker compose up
(v2.32.1) there are no volume mounts present on the 'php' service:However the 'web' service does show the expected volumes:
Testing with
docker-compose up -d
(v2.31.0) we see the volumes also on the 'php' service:Compose Version
Docker Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: