From 14e83cac6d345914807badb67e455d63aa6c885b Mon Sep 17 00:00:00 2001 From: Chris Arthurs Date: Mon, 25 May 2020 14:28:51 +0100 Subject: [PATCH] Basic go example was not working with v1.41 Fixed go example: 1) so that it actually compiles, and 2) so that you get to see the output `hello world` in visual studio code's console (`Tty: true,`). --- engine/api/sdk/examples.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/api/sdk/examples.md b/engine/api/sdk/examples.md index e21177854f..d35956bb2e 100644 --- a/engine/api/sdk/examples.md +++ b/engine/api/sdk/examples.md @@ -66,8 +66,8 @@ func main() { resp, err := cli.ContainerCreate(ctx, &container.Config{ Image: "alpine", Cmd: []string{"echo", "hello world"}, - Tty: true, - }, nil, nil, "") + Tty: false, + }, nil, nil, nil, "") if err != nil { panic(err) }