Use network_mode=bridge when testing links

Links are only compatible with network mode bridge.
New versions of docker only create env entries when network mode
is properly set.

Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
Joffrey F 2015-10-28 14:52:17 +01:00
parent a610a1be0e
commit aaeb6c1087
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ class CreateContainerTest(api_test.BaseTestCase):
res2 = self.client.create_container(
BUSYBOX, 'env', host_config=self.client.create_host_config(
links={link_path1: link_alias1, link_path2: link_alias2},
network_mode='none'
network_mode='bridge'
)
)
container3_id = res2['Id']