From 19af4b70e6f4552ccb036a186d5be3be1589b66e Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 29 Apr 2014 16:31:43 -0700 Subject: [PATCH] providers/docker: with a pty, single target the docker-run cmd --- plugins/providers/docker/command/run.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/providers/docker/command/run.rb b/plugins/providers/docker/command/run.rb index 25a5d786e..b130ca346 100644 --- a/plugins/providers/docker/command/run.rb +++ b/plugins/providers/docker/command/run.rb @@ -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,