-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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] Deadlock on recreation of logging container #12103
Comments
This is expected. Compose can't manage a container which is used to extends the Docker Engine capabilities. As you noticed, ability to manage service container lifecycle depends on this logging service to be available. Using compose to manage this engine extension is not the right way |
And what would be the right way? As of today, compose considers container lifecycles for commands like |
as long as fluentbit is used to extends docker engine features, it should be managed the same way as dockerd - as a systemd service or comparable. Running in a container just bring a chicked-and-egg challenge: how to run dockerd so it can run fluentbit if fluentbit isn't already running ? |
Aaah ok. So, I can understand your point of view if fluentbit would be used system wide for all containers or at least additional containers outside of that single compose file. Than that makes sense and I see the chicken-and-egg-problem. The example above is a shortened version of a local dev-env. For developers, it should be a single, isolated environment to use. The fluentbit-image is a custom image with the configuration already build in to mimic the production env as close as possible. It's only used by other containers in that compose file and works really well if you just use So at least from my point of view all required information are present to handle this situation and I don't see the chicken-and-egg problem. |
Tested your example compose.yaml and can't reproduce:
|
I also don't get the behavior with the command
|
Sure, |
Exactly this is where my expectation came from. Since But I can understand that it's up to you to decide if this is a bug or expected behavior. The technical parts of my report should be clear now. Thank you for taking the time to understand my problem! |
Description
See example below. We have a fluentbit container and an app container which uses the fluentbit container in its logging configuration. If there is anything which triggers a recreation of the fluentbit container, the following happens:
Workaround: run
docker start [project-name]-fluentbit-1
in a second terminalExpected behaviour: No deadlock
Steps To Reproduce
Compose Version
Docker Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: