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,