diff options
Diffstat (limited to 'users')
-rw-r--r-- | users/fcuny/exp/containerd-to-vm/cmd/c2vm/main.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/users/fcuny/exp/containerd-to-vm/cmd/c2vm/main.go b/users/fcuny/exp/containerd-to-vm/cmd/c2vm/main.go index 544293e..3251f96 100644 --- a/users/fcuny/exp/containerd-to-vm/cmd/c2vm/main.go +++ b/users/fcuny/exp/containerd-to-vm/cmd/c2vm/main.go @@ -187,6 +187,9 @@ func initScript(ctx context.Context, client *containerd.Client, image containerd } configBlob, err := content.ReadBlob(ctx, client.ContentStore(), config) + if err != nil { + return err + } var imageSpec ocispec.Image json.Unmarshal(configBlob, &imageSpec) initCmd := strings.Join(imageSpec.Config.Cmd, " ") |