mirror of https://github.com/docker/docker-py.git
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:
parent
a610a1be0e
commit
aaeb6c1087
|
@ -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']
|
||||
|
|
Loading…
Reference in New Issue