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 with "docker-compose run -d" and docker rm #5498
Comments
Yeh, I thought that would be it. I'm actually manually setting the container name though, so regardless there's no need to be inspecting every container! |
Unfortunately, #5432 has been closed :/ |
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 closed because it had not recent activity during the stale period. |
Hi,
I'm seeing what appears to be a race condition between docker-compose run and docker rm. I'm attempting to run docker-compose run on a box which has containers (of the same service!) being actively created and removed and i'm seeing intermittent errors when issuing the next
docker-compose run
. This can be replicated by running the following command twice:I believe this is because even when just doing a
run
, docker-compose first grabs the list of available containers, and then does docker inspect on each individual container before spinning up the new container. If andocker rm
is issued between grabbing the list of containers and inspecting the container, the above error occurs.I'm not sure what a good solution is for this. Is it possible for me to do
docker-compose run
without inspecting every container?Thanks
The text was updated successfully, but these errors were encountered: