Skip to content
Permalink
Browse files

Merge pull request moby#26718 from ncdc/add-logs-to-container-attach-…

…options

Add Logs to ContainerAttachOptions
  • Loading branch information...
mlaventure committed Oct 27, 2016
2 parents 49fa58a + 27bab36 commit 4c7160ed7b0d0b66a82ef623eb8a42cac980ff3c
Showing with 3 additions and 0 deletions.
  1. +3 −0 container_attach.go
@@ -28,6 +28,9 @@ func (cli *Client) ContainerAttach(ctx context.Context, container string, option
if options.DetachKeys != "" {
query.Set("detachKeys", options.DetachKeys)
}
if options.Logs {
query.Set("logs", "1")
}

headers := map[string][]string{"Content-Type": {"text/plain"}}
return cli.postHijacked(ctx, "/containers/"+container+"/attach", query, nil, headers)

0 comments on commit 4c7160e

Please sign in to comment.
You can’t perform that action at this time.