Skip to content

Commit

Permalink
Merge pull request #30 from chaitin/fix-containerd-runtime-nil
Browse files Browse the repository at this point in the history
修复 Containerd 镜像中的 nil 引用
  • Loading branch information
aegistudio authored Jun 16, 2022
2 parents 2fd479d + b5f7f18 commit 4984a12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/containerd/containerd.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func (d *Containerd) OpenImageByID(id string) (api.Image, error) {
if err != nil {
return nil, err
}
result := &Image{image: h}
result := &Image{runtime: d, image: h}
result.Closer = behaviour.NewCloser(&result.image)
result.Image = behaviour.NewImage(&result.image)
result.FileSystem = behaviour.NewFileSystem(&result.image)
Expand Down

0 comments on commit 4984a12

Please sign in to comment.