Skip to content

Commit

Permalink
Merge pull request #7689 from ulyssessouza/parse_build_cli_network-mode
Browse files Browse the repository at this point in the history
Parse network-mode on CLI build
  • Loading branch information
aiordache authored Aug 20, 2020
2 parents 25d773c + 6cebde7 commit c3f26bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compose/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c3f26bf

Please sign in to comment.