-
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] compose watch combined with depends_on can lead to failure of dependencies #11695
Comments
After some more time using |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hey @nikita-vanyasin I encountered this too - Any idea what's causing this? Did you find a fix? |
This issue has been automatically marked as not stale anymore due to the recent activity. |
Hello! |
I see that error is a bit different with new version and running under MacOS+DockerDesktop:
|
I've figured out that problem occurs only when services I've ended up to use next workaround:
This works fine, although it is not quite a use-case for which docker compose was disigned. When code changes, both services are restarted. The no-op container exits immediately after start:
|
Description
I've started to use 'watch' feature for one project, but it fails every time when I change files from state A to state B and then back to state A.
Steps To Reproduce
docker compose watch
.As you can see, the error mentions container db. This container dies.
Looks like compose is trying to restart dependencies after rebuilding apiserver but somehow conflict occurs.
The problem does not occur when I run watch only for one service (docker compose watch apiserver)
Compose Version
Docker Environment
Anything else?
This might be related to #9014
The text was updated successfully, but these errors were encountered: