From 6cebde77fbd7e7779f5d5d72e9e9f06382020772 Mon Sep 17 00:00:00 2001 From: Ulysses Souza Date: Wed, 19 Aug 2020 22:32:25 +0200 Subject: [PATCH] Parse network-mode on CLI build Signed-off-by: Ulysses Souza --- compose/service.py | 1 + 1 file changed, 1 insertion(+) diff --git a/compose/service.py b/compose/service.py index 5980310b300..471f9e199f3 100644 --- a/compose/service.py +++ b/compose/service.py @@ -1845,6 +1845,7 @@ def build(self, path, tag=None, quiet=False, fileobj=None, command_builder.add_flag("--force-rm", forcerm) command_builder.add_params("--label", labels) command_builder.add_arg("--memory", container_limits.get("memory")) + command_builder.add_arg("--network", network_mode) command_builder.add_flag("--no-cache", nocache) command_builder.add_arg("--progress", self._progress) command_builder.add_flag("--pull", pull)