Merge pull request #1549 from estesp/fix-getting-started-examples

Fix example using old GenerateSpec function
This commit is contained in:
Michael Crosby
2017-09-22 15:33:32 -04:00
committed by GitHub

View File

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