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:
Phil Estes 2017-09-22 15:25:18 -04:00
parent 9a7e776e39
commit fe1e00c06c
No known key found for this signature in database
GPG Key ID: 0F386284C03A1162

View File

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