Merge pull request #1549 from estesp/fix-getting-started-examples
Fix example using old GenerateSpec function
This commit is contained in:
commit
316ce18a45
@ -196,7 +196,7 @@ func redisExample() error {
|
|||||||
}
|
}
|
||||||
log.Printf("Successfully pulled %s image\n", image.Name())
|
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 {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user