Specify all HostConfig at create time

This is required for Swarm integration: the cluster needs to know
about config like `links` and `volumes_from` at create time so that it
can co-schedule containers.

Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
Aanand Prasad 2015-02-16 14:30:31 +00:00
commit eef4bc3917
4 changed files with 64 additions and 44 deletions

View file

@ -13,7 +13,7 @@ from .testcases import DockerClientTestCase
def create_and_start_container(service, **override_options):
container = service.create_container(**override_options)
return service.start_container(container, **override_options)
return service.start_container(container)
class ServiceTest(DockerClientTestCase):