You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: config.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ Changing it means creating a new derived image, instead of changing the existing
28
28
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`.
29
29
Layers must be packed and unpacked reproducibly to avoid changing the layer DiffID, for example by using tar-split to save the tar headers.
30
30
31
-
NOTE: Do not confuse DiffIDs with [layer digests](manifest.md#image-manifest-property-descriptions), often referenced in the manifest, which are digests over compressed content.
31
+
NOTE: Do not confuse DiffIDs with [layer digests](manifest.md#image-manifest-property-descriptions), often referenced in the manifest, which are digests over compressed or uncompressed content.
layer [shape=note, label="Layer tar archive\napplication/vnd.oci.image.layer.v1.tar\napplication/vnd.oci.image.layer.v1.tar+gzip\napplication/vnd.oci.image.layer.nondistributable.v1.tar\napplication/vnd.oci.image.layer.nondistributable.v1.tar+gzip"]
Copy file name to clipboardExpand all lines: layer.md
+11-6Lines changed: 11 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,12 +4,17 @@ This document describes how to serialize a filesystem and filesystem changes lik
4
4
One or more layers are applied on top of each other to create a complete filesystem.
5
5
This document will use a concrete example to illustrate how to create and consume these filesystem layers.
6
6
7
-
This section defines the `application/vnd.oci.image.layer.v1.tar+gzip` and `application/vnd.oci.image.layer.nondistributable.v1.tar+gzip`[media types](media-types.md).
7
+
This section defines the `application/vnd.oci.image.layer.v1.tar`, `application/vnd.oci.image.layer.v1.tar+gzip`, `application/vnd.oci.image.layer.nondistributable.v1.tar`, and `application/vnd.oci.image.layer.nondistributable.v1.tar+gzip`[media types](media-types.md).
8
+
9
+
## `+gzip` Media Types
10
+
11
+
The media type `application/vnd.oci.image.layer.v1.tar+gzip` represents an `application/vnd.oci.image.layer.v1.tar` payload which has been compressed with [gzip][rfc1952].
12
+
The media type `application/vnd.oci.image.layer.nondistributable.v1.tar+gzip` represents an `application/vnd.oci.image.layer.nondistributable.v1.tar` payload which has been compressed with [gzip][rfc1952].
8
13
9
14
## Distributable Format
10
15
11
-
Layer Changesets for the [mediatype](./media-types.md)`application/vnd.oci.image.layer.v1.tar+gzip` MUST be packaged in a [tar archive][tar-archive] compressed with [gzip][gzip].
12
-
Layer Changesets for the [mediatype](./media-types.md)`application/vnd.oci.image.layer.v1.tar+gzip` MUST NOT include duplicate entries for file paths in the resulting [tar archive][tar-archive].
16
+
Layer Changesets for the [media type](media-types.md)`application/vnd.oci.image.layer.v1.tar` MUST be packaged in [tar archive][tar-archive].
17
+
Layer Changesets for the [media type](media-types.md)`application/vnd.oci.image.layer.v1.tar` MUST NOT include duplicate entries for file paths in the resulting [tar archive][tar-archive].
13
18
14
19
## Change Types
15
20
@@ -208,7 +213,7 @@ To signify that the resource `./etc/my-app-config` MUST be removed when the chan
208
213
209
214
## Applying Changesets
210
215
211
-
Layer Changesets of [mediatype](./media-types.md)`application/vnd.oci.image.layer.v1.tar+gzip` are _applied_, rather than simply extracted as tar archives.
216
+
Layer Changesets of [media type](media-types.md)`application/vnd.oci.image.layer.v1.tar` are _applied_, rather than simply extracted as tar archives.
212
217
213
218
Applying a layer changeset requires special consideration for the [whiteout](#whiteouts) files.
214
219
@@ -311,12 +316,12 @@ Any given image is likely to be composed of several of these Image Filesystem Ch
311
316
Due to legal requirements, certain layers may not be regularly distributable.
312
317
Such "non-distributable" layers are typically downloaded directly from a distributor but never uploaded.
313
318
314
-
Non-distributable layers SHOULD be tagged with an alternative mediatype of `application/vnd.oci.image.layer.nondistributable.v1.tar+gzip`.
319
+
Non-distributable layers SHOULD be tagged with an alternative mediatype of `application/vnd.oci.image.layer.nondistributable.v1.tar`.
315
320
Implementations SHOULD NOT upload layers tagged with this media type; however, such a media type SHOULD NOT affect whether an implementation downloads the layer.
316
321
317
322
[Descriptors](descriptor.md) referencing non-distributable layers MAY include `urls` for downloading these layers directly; however, the presence of the `urls` field SHOULD NOT be used to determine whether or not a layer is non-distributable.
-`application/vnd.oci.image.layer.v1.tar+gzip`: ["Layer", as a gzipped tar archive](layer.md)
10
-
-`application/vnd.oci.image.layer.nondistributable.v1.tar+gzip`: ["Layer", as a gzipped tar archive with distribution restrictions](layer.md#non-distributable-layers)
9
+
-`application/vnd.oci.image.layer.v1.tar`: ["Layer", as a tar archive](layer.md)
10
+
-`application/vnd.oci.image.layer.v1.tar+gzip`: ["Layer", as a tar archive](layer.md#gzip-media-types) compressed with [gzip][rfc1952]
11
+
-`application/vnd.oci.image.layer.nondistributable.v1.tar`: ["Layer", as a tar archive with distribution restrictions](layer.md#non-distributable-layers)
12
+
-`application/vnd.oci.image.layer.nondistributable.v1.tar+gzip`: ["Layer", as a tar archive with distribution restrictions](layer.md#gzip-media-types) compressed with [gzip][rfc1952]
11
13
12
14
## Media Type Conflicts
13
15
@@ -41,7 +43,7 @@ This section shows where the OCI Image Specification is compatible with formats
**Interchangeable and fully compatible mime-types**
47
49
@@ -61,3 +63,5 @@ The following figure shows how the above media types reference each other:
61
63
62
64
[Descriptors](descriptor.md) are used for all references.
63
65
The manifest list being a "fat manifest" references one or more image manifests per target platform. An image manifest references exactly one target configuration and possibly many layers.
0 commit comments