瀏覽代碼

c8d/builder: Set empty diffID for rolayer

diffID is the digest of a tar archive containing changes to the parent
layer - rolayer doesn't have any changes to the parent.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
Paweł Gronowski 1 年之前
父節點
當前提交
8c7e19c5ff
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      daemon/containerd/image_builder.go

+ 1 - 1
daemon/containerd/image_builder.go

@@ -201,7 +201,7 @@ func newROLayerForImage(ctx context.Context, imgDesc *ocispec.Descriptor, i *Ima
 		key:                key,
 		c:                  i.client,
 		snapshotter:        i.snapshotter,
-		diffID:             digest.Digest(parent),
+		diffID:             "", // Image RO layer doesn't have a diff.
 		contentStoreDigest: "",
 	}, nil
 }