-
-
Notifications
You must be signed in to change notification settings - Fork 467
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
Race condition in docker.start #582
Comments
Interesting. But I don't see an easy fix for this one. Checking the container's status will not help. We can't assume the container finished correctly after a very fast lifecycle, something could went bad. |
This doesn't seem to be limited to very fast launches, or to rephrase I'm seeing it on containers that run ~3s. I observe it regularly with podman on OSX on my techdocs container that takes a few seconds to execute. The issue does seems to be race condition between the
There doesn't seem to be any way to resolve this either. Is there any guidance one could offer a downstream library on how to avoid this? log excerpt
Thank you! |
First of all, Thank You! for this amazing project.
When I try to run a short running operation in a new container with the HostOption
AutoRemove: true
like this:it occasionally fails with the error message:
I tracked the issue down to those lines of code:
dockerode/lib/docker.js
Lines 1486 to 1494 in ed6ef39
The wait operation can fail, if the container is already finished and automatically removed between the
start
andwait
operation. I have no good idea how to mitigate this issue, yet. Somebody care to take a look?The text was updated successfully, but these errors were encountered: