From fe1e00c06c165d5c0b89cbe7911deecf86afa658 Mon Sep 17 00:00:00 2001 From: Phil Estes Date: Fri, 22 Sep 2017 15:25:18 -0400 Subject: [PATCH] Fix example using old GenerateSpec function This fixes the example in the getting started guide. The full example was already correct; tested compilation and proper runtime on latest master. Signed-off-by: Phil Estes --- docs/getting-started.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/getting-started.md b/docs/getting-started.md index 977f626ff..be48f3bdf 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -196,7 +196,7 @@ func redisExample() error { } log.Printf("Successfully pulled %s image\n", image.Name()) - spec, err := containerd.GenerateSpec(containerd.WithImageConfig(ctx, image)) + spec, err := containerd.GenerateSpec(ctx, client, nil, containerd.WithImageConfig(image)) if err != nil { return err }