debugging

This commit is contained in:
Jan Renz
2015-04-14 17:10:05 +02:00
parent 0b7ae86a69
commit 91ac7e8e37

View File

@ -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