From 27bab36800713d248c1f7cb7f3666926426eabf2 Mon Sep 17 00:00:00 2001 From: Andy Goldstein Date: Mon, 19 Sep 2016 14:55:52 -0400 Subject: [PATCH] Add Logs to ContainerAttachOptions Signed-off-by: Andy Goldstein --- container_attach.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/container_attach.go b/container_attach.go index 7cfc860fcc..eea4682158 100644 --- a/container_attach.go +++ b/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)