From 91ac7e8e371a9780cd5b60964b926d68df6c4844 Mon Sep 17 00:00:00 2001 From: Jan Renz Date: Tue, 14 Apr 2015 17:10:05 +0200 Subject: [PATCH] debugging --- lib/docker_client.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/docker_client.rb b/lib/docker_client.rb index aac180d0..62e84032 100644 --- a/lib/docker_client.rb +++ b/lib/docker_client.rb @@ -162,11 +162,11 @@ class DockerClient stdout = [] # map command in a shell call, maybe add -c command = ['bash', '-c', command] - command.join(' ') + #command.join!(' ') # lets call the command, but we do not want the container to stop afterwards # thats why we use exec. If its ok do stop the container this could be assign instead - #container.exec(command) do |stream, chunk| - container.attach(stdin: StringIO.new(command)) do |stream, chunk| + container.exec(command) do |stream, chunk| + #container.attach(stdin: StringIO.new(command)) do |stream, chunk| block.call(stream, chunk) if block_given? if stream == :stderr