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
Duplicate container is left over when recreate fails #1573
Comments
I also see a lot of these. I'm not sure if those are caused by #1045 Ubuntu 15.04; Docker 1.7 |
Looks related to #1349 - Compose has somehow gotten into a situation where there are two containers with the suffix |
I think after the failure, compose would need to only recreate once per instance id. In many ways this is related to #1516. |
OK yeah, looks like this happens if we successfully create the new container but fail to start it. I can reproduce by sticking a new_container = self.create_container(...)
sys.exit(1)
self.start_container(new_container) This results in a renamed old container, plus an unstarted new container, both with
Random container numbers would solve the immediate error, yeah, but we'd still be left with two containers where we only wanted one. |
Same combination, same problem. I also doubt it's #1045 I could get back to work by coming back to Docker 1.4.1 and docker-compose 1.2.0. |
This bug seems to show up if there is an exception (e.g. with #1045) or if you Ctrl+C in the middle of a |
Which version can I downgrade to so that I can get around this issue? |
@iMerica Run |
This is related to #1045. After hitting the issue mentioned in #1045, subsequent
docker-compose up
fails with:The text was updated successfully, but these errors were encountered: