From e270e7df275278830a400958258349a75842303e Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Tue, 31 May 2016 20:04:27 -0400 Subject: [PATCH] provider/docker: Add -u flag to exec --- plugins/providers/docker/command/exec.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/providers/docker/command/exec.rb b/plugins/providers/docker/command/exec.rb index 4172a668d..daf5f8e98 100644 --- a/plugins/providers/docker/command/exec.rb +++ b/plugins/providers/docker/command/exec.rb @@ -31,6 +31,10 @@ module VagrantPlugins options[:pty] = t end + o.on("-u", "--user USER", "User or UID") do |u| + options[:user] = u + end + o.on("--[no-]prefix", "Prefix output with machine names") do |p| options[:prefix] = p end