providers/docker: with a pty, single target the docker-run cmd

This commit is contained in:
Mitchell Hashimoto 2014-04-29 16:31:43 -07:00
parent 0bb523ebb0
commit 19af4b70e6
1 changed files with 4 additions and 1 deletions

View File

@ -41,7 +41,10 @@ module VagrantPlugins
argv = parse_options(opts)
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!
machine.action(
:run_command,