From aaeb6c1087652b73ba46a2b4296060356bbd957f Mon Sep 17 00:00:00 2001 From: Joffrey F Date: Wed, 28 Oct 2015 14:52:17 +0100 Subject: [PATCH] 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 --- tests/integration/container_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/container_test.py b/tests/integration/container_test.py index 04a0ef542c..a70c0ad966 100644 --- a/tests/integration/container_test.py +++ b/tests/integration/container_test.py @@ -107,7 +107,7 @@ def test_create_with_links(self): 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']