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,`).
This commit is contained in:
Chris Arthurs 2020-05-25 14:28:51 +01:00 committed by GitHub
parent 0f4122dec2
commit 14e83cac6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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