-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
[BUG] Submount fails when defining configs in dependent service #12094
Comments
The issue is that |
How does that explain the fact that the volume submount works without the config and only breaks for the service with? |
Oh, and also the fact it is only a problem when starting a 3rd service which depends on the service with a config? |
I can reproduce without relying on a 3rd service:
I guess the root cause is collision between
|
I guess the reason you only detect this with a |
Any suggestions on how to move forward? |
Would need to better know your actual use-case to offer guidance.
This may have impacts so I can't tell. As a workaround, you can consider using a plain file as config, which would result into a bind mount |
An actual fix would require to change |
Description
There seems to be some strange interconnections between volumes and configs, when starting a service as a dependency.
A service with a submount can start fine when running on its own - even when defining a config.
But starting a service that depends on the service with a submount will make the dependent service fail - if a config is defined for the dependent service.
Steps To Reproduce
Running this compose file:
will fail if you run
docker compose run --rm with-config-too
, while it works when running any other service.Remember to
docker compose down --volumes
when running different services.Compose Version
Docker Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: