-
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] Intermittent failure to remove old container on recreate #11151
Comments
Can you try to reproduce with latest release ? v2.17 is pretty old ... |
Thanks, I'll pull us forward and see if it reoccurs. Scanning the release notes I saw "Fixed a race condition when --parallel is used with a large number of dependent services" But that seems to related to #10544 which doesn't match the observed issue. |
I'm experiencing similar issue with However, in my case, it fails to create an intermediate container:
The compose file itself has only one service. I would be happy to provide more details if you have any ideas on how to debug this UPD: looks like the issue occurs when the service image is updated, the subsequent UPD: UPD:
|
Just noticed this myself on version 2.27 - with docker instance of nginx-proxy |
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. |
This issue has been automatically marked as not stale anymore due to the recent activity. |
Description
Running the following command to recreate all containers.
docker compose --project-directory /etc/bob/ up --detach --force-recreate --remove-orphans --wait
Recreating 26 different containers, the compose file definition had not changed but the source image had been rebuilt and pulled onto the machine.
An extract from the running log
The command ran for 0.89 seconds.
Rerunning the up command worked fine. Most of the time (multiple very similar systems) works fine. I can't produce a reproducible test case.
I suspect some sort of race condition between the deletion of the image and the creation of the new one, but have not capability to hunt down such a bug.
Steps To Reproduce
Compose Version
Docker Environment
Anything else?
System CPU usage at the time was about 10%, total ram usage was high but 3/4 of it was disk cache.
The text was updated successfully, but these errors were encountered: