From 6b47e363bc067c9d9632015eef8853fcbddd59ae Mon Sep 17 00:00:00 2001 From: Vasu1105 Date: Tue, 9 Mar 2021 14:10:19 +0530 Subject: [PATCH] Handle user option for user selection through docker transport Signed-off-by: Vasu1105 --- lib/train/transports/docker.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/train/transports/docker.rb b/lib/train/transports/docker.rb index 9b2cb54e7..99a0cd60c 100644 --- a/lib/train/transports/docker.rb +++ b/lib/train/transports/docker.rb @@ -88,7 +88,7 @@ def run_command_via_connection(cmd, &_data_handler) stdout, stderr, exit_status = @container.exec( [ "/bin/sh", "-c", cmd - ] + ], user: @options[:user] ) CommandResult.new(stdout.join, stderr.join, exit_status) rescue ::Docker::Error::DockerError => _