Fix some tests failing with docker 1.1.2 and add a comment to recreate_container() explaining what it does.

Signed-off-by: Daniel Nephin <dnephin@gmail.com>
This commit is contained in:
Daniel Nephin 2014-08-31 13:07:49 -04:00
commit 71e7103662
3 changed files with 20 additions and 15 deletions

View file

@ -200,6 +200,10 @@ class Service(object):
return tuples
def recreate_container(self, container, **override_options):
"""Recreate a container. An intermediate container is created so that
the new container has the same name, while still supporting
`volumes-from` the original container.
"""
try:
container.stop()
except APIError as e: