Преглед изворни кода

Parse network-mode on CLI build

Signed-off-by: Ulysses Souza <[email protected]>
Ulysses Souza пре 5 година
родитељ
комит
6cebde77fb
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      compose/service.py

+ 1 - 0
compose/service.py

@@ -1845,6 +1845,7 @@ class _CLIBuilder:
         command_builder.add_flag("--force-rm", forcerm)
         command_builder.add_flag("--force-rm", forcerm)
         command_builder.add_params("--label", labels)
         command_builder.add_params("--label", labels)
         command_builder.add_arg("--memory", container_limits.get("memory"))
         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_flag("--no-cache", nocache)
         command_builder.add_arg("--progress", self._progress)
         command_builder.add_arg("--progress", self._progress)
         command_builder.add_flag("--pull", pull)
         command_builder.add_flag("--pull", pull)