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

Running docker-compose run from different shell scripts in same folder can lead to race condition leading to error & abort #5240

Closed
ghost opened this issue Oct 6, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Oct 6, 2017

Running docker-compose run from different shell scripts in same folder can lead to race condition leading to error & abort:

ERROR: Cannot create container for service hermes: b'Conflict. The container name "/dockerbug150728952675791742_hermes_run_216" is already in use by container "7d3242d7020a3849afef92010eec6f1c515f80abf9a9a62018180e43a20c8514". You have to remove (or rename) that container to be able to reuse that name.'

Since this impacts the ability to use docker-compose from automated scripts, it would be nice if this special case could be somehow caught and resolved automatically in a way that avoids that error.

@shin-
Copy link

shin- commented Oct 6, 2017

Duplicate of #4688

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

No branches or pull requests

1 participant