Skip to content

Commit 2903142

Browse files
authored
Merge pull request #233 from stevvooe/foreign-layer-media-type
layers: describe policy enforcement for foreign layer media type
2 parents ddc89f2 + e48e595 commit 2903142

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

layer.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,4 +270,13 @@ Implementations SHOULD generate layers using _explicit whiteout_ files, but MUST
270270

271271
Any given image is likely to be composed of several of these Image Filesystem Changeset tar archives.
272272

273+
# Non-Distributable Layers
274+
275+
Certain layers, due to legal requirements, may not be regularly distributable.
276+
Typically, such layers are downloaded directly from a distributor but are never uploaded.
277+
278+
Layers that have these restrictions SHOULD be tagged with an alternative mediatype of `application/vnd.oci.image.layer.nondistributable.tar+gzip`.
279+
[Descriptors](descriptor.md) referencing these layers MAY include `urls` for downloading these layers.
280+
It is implementation defined whether or not implementations upload layers tagged with this media type.
281+
273282
[tar-archive]: https://en.wikipedia.org/wiki/Tar_(computing)

media-types.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ The following media types identify the formats described here and their referenc
55
- `application/vnd.oci.descriptor.v1+json`: [Content Descriptor](descriptor.md)
66
- `application/vnd.oci.image.manifest.list.v1+json`: [Manifest list](manifest.md#manifest-list)
77
- `application/vnd.oci.image.manifest.v1+json`: [Image manifest format](manifest.md#image-manifest)
8-
- `application/vnd.oci.image.layer.tar+gzip`: ["Layer", as a gzipped tar archive](layer.md)
98
- `application/vnd.oci.image.config.v1+json`: [Container config JSON](serialization.md)
9+
- `application/vnd.oci.image.layer.tar+gzip`: ["Layer", as a gzipped tar archive](layer.md)
10+
- `application/vnd.oci.image.layer.nondistributable.tar+gzip`: ["Layer", as a gzipped tar that has distribution restrictions](layer.md#non-distributable-layers)
1011

1112
## Compatibility Matrix
1213

0 commit comments

Comments
 (0)