Explorar el Código

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 hace 1 año
padre
commit
8c7e19c5ff
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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
 }