Merge pull request #460 from dnephin/fix_tests_for_docker_1.1

Fix test failures on docker 1.1.2
This commit is contained in:
Aanand Prasad 2014-09-30 17:52:38 -07:00
commit ec5c864cc7
5 changed files with 51 additions and 32 deletions

View file

@ -205,6 +205,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: