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>
This commit is contained in:
parent
9a7e776e39
commit
fe1e00c06c
@ -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