Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions lib/docker/exec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def start!(options = {}, &block)
# Parse the Options
tty = !!options.delete(:tty)
detached = !!options.delete(:detach)
stdin = options[:stdin]
stdin = options.delete(:stdin)

# Create API Request Body
body = {
Expand All @@ -56,6 +56,9 @@ def start!(options = {}, &block)
}
excon_params = { :body => body.to_json }

opts = {
:stream => true, :stdout => true, :stderr => true
}.merge(options)
msgs = Docker::Messages.new
unless detached
if stdin
Expand All @@ -67,7 +70,7 @@ def start!(options = {}, &block)
end
end

connection.post(path_for(:start), nil, excon_params)
connection.post(path_for(:start), opts, excon_params)
[msgs.stdout_messages, msgs.stderr_messages, self.json['ExitCode']]
end

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading