Skip to content

Commit 7e4a7f3

Browse files
stevvooewking
authored andcommitted
config: Simplify the paragraph contrasting diffIDs with layer digests
Trevor and I couldn't agree on more detailed wording [1], and this paragraph was never normative anyway. [1]: #388 (comment) Signed-off-by: Stephen J Day <[email protected]> Signed-off-by: W. Trevor King <[email protected]>
1 parent 1053195 commit 7e4a7f3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

config.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ Changing it means creating a new derived image, instead of changing the existing
2828
A layer DiffID is a SHA256 digest over the layer's uncompressed tar archive and serialized in the descriptor digest format, e.g., `sha256:a9561eb1b190625c9adb5a9513e72c4dedafc1cb2d4c5236c9a6957ec7dfd5a9`.
2929
Layers must be packed and unpacked reproducibly to avoid changing the layer DiffID, for example by using tar-split to save the tar headers.
3030

31-
The difference between DiffIDs and the layer digests in the [manifest's `layers`](manifest.md#image-manifest-property-descriptions) is that the layer digest is taken over the blob regardless of compression, while the DiffID is taken after removing any compression.
32-
For an [`application/vnd.oci.image.layer.v1.tar+gzip`](layer.md) layer, the layer digest is taken over the `application/vnd.oci.image.layer.v1.tar+gzip` content, while the DiffID is take over the [`application/vnd.oci.image.layer.v1.tar`](media-types.md#oci-image-media-types) content.
31+
Do not confuse DiffIDs with [layer digests](manifest.md#image-manifest-property-descriptions), often referenced in the manifest, which allow digests over compressed or uncompressed content.
3332

3433
### Layer ChainID
3534

0 commit comments

Comments
 (0)