mirror of https://github.com/docker/compose.git
Rename build_container_options to build_one_off_container_options
.. to better reflect that its scope is limited to one-off execution (i.e. the "run" command) Signed-off-by: Sebastian Pipping <sebastian@pipping.org>
This commit is contained in:
parent
6559af7660
commit
e7f82d2989
|
@ -872,7 +872,7 @@ class TopLevelCommand(object):
|
||||||
else:
|
else:
|
||||||
command = service.options.get('command')
|
command = service.options.get('command')
|
||||||
|
|
||||||
container_options = build_container_options(options, detach, command)
|
container_options = build_one_off_container_options(options, detach, command)
|
||||||
run_one_off_container(
|
run_one_off_container(
|
||||||
container_options, self.project, service, options,
|
container_options, self.project, service, options,
|
||||||
self.toplevel_options, self.project_dir
|
self.toplevel_options, self.project_dir
|
||||||
|
@ -1267,7 +1267,7 @@ def build_action_from_opts(options):
|
||||||
return BuildAction.none
|
return BuildAction.none
|
||||||
|
|
||||||
|
|
||||||
def build_container_options(options, detach, command):
|
def build_one_off_container_options(options, detach, command):
|
||||||
container_options = {
|
container_options = {
|
||||||
'command': command,
|
'command': command,
|
||||||
'tty': not (detach or options['-T'] or not sys.stdin.isatty()),
|
'tty': not (detach or options['-T'] or not sys.stdin.isatty()),
|
||||||
|
|
Loading…
Reference in New Issue