providers/docker: with a pty, single target the docker-run cmd
This commit is contained in:
parent
0bb523ebb0
commit
19af4b70e6
|
@ -41,7 +41,10 @@ module VagrantPlugins
|
||||||
argv = parse_options(opts)
|
argv = parse_options(opts)
|
||||||
return if !argv
|
return if !argv
|
||||||
|
|
||||||
with_target_vms(argv, provider: :docker) do |machine|
|
target_opts = { provider: :docker }
|
||||||
|
target_opts[:single_target] = options[:pty]
|
||||||
|
|
||||||
|
with_target_vms(argv, target_opts) do |machine|
|
||||||
# Run it!
|
# Run it!
|
||||||
machine.action(
|
machine.action(
|
||||||
:run_command,
|
:run_command,
|
||||||
|
|
Loading…
Reference in New Issue