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:
parent
9931cd2c4c
commit
eef4bc3917
4 changed files with 64 additions and 44 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue