Skip to content
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

use service.stop to stop dependent containers #12322

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

ndeloof
Copy link
Contributor

@ndeloof ndeloof commented Nov 25, 2024

What I did
as we detect a service must be recreated, use composeService.stop to stop them following dependency tree and with concurrent operations where possible.

Related issue
fixes #12310

(not mandatory) A picture of a cute animal, if possible in relation to what you did

Copy link
Contributor

@glours glours left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

@glours glours enabled auto-merge (rebase) November 25, 2024 10:38
Copy link
Contributor

@glours glours left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI did the job 😅

Services: dependents,
Project: project,
})
return err
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return err
if err != nil {
return err
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For once I didn't used golang snipet for error management, here is the result 😅

@glours glours merged commit 2d148fa into docker:main Nov 25, 2024
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Docker Compose up with build option stops services one by one slowly before restarting them
2 participants