X Tutup
Skip to content

Commit fe1e00c

Browse files
committed
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 <estesp@linux.vnet.ibm.com>
1 parent 9a7e776 commit fe1e00c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ func redisExample() error {
196196
}
197197
log.Printf("Successfully pulled %s image\n", image.Name())
198198

199-
spec, err := containerd.GenerateSpec(containerd.WithImageConfig(ctx, image))
199+
spec, err := containerd.GenerateSpec(ctx, client, nil, containerd.WithImageConfig(image))
200200
if err != nil {
201201
return err
202202
}

0 commit comments

Comments
 (0)
X Tutup