Skip to content

Commit aaeb6c1

Browse files
committed
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 <[email protected]>
1 parent a610a1b commit aaeb6c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration/container_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def test_create_with_links(self):
107107
res2 = self.client.create_container(
108108
BUSYBOX, 'env', host_config=self.client.create_host_config(
109109
links={link_path1: link_alias1, link_path2: link_alias2},
110-
network_mode='none'
110+
network_mode='bridge'
111111
)
112112
)
113113
container3_id = res2['Id']

0 commit comments

Comments
 (0)