Merge pull request #11209 from fhemberger/patch-1

examples.md: Actually use `ctx` variable in Go example
This commit is contained in:
Sebastiaan van Stijn 2020-08-03 15:53:59 +02:00 committed by GitHub
commit 8dea3a7055
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -245,7 +245,7 @@ func main() {
panic(err) panic(err)
} }
containers, err := cli.ContainerList(context.Background(), types.ContainerListOptions{}) containers, err := cli.ContainerList(ctx, types.ContainerListOptions{})
if err != nil { if err != nil {
panic(err) panic(err)
} }