diff --git a/layer.md b/layer.md index b3cc01899..97c6bf3c6 100644 --- a/layer.md +++ b/layer.md @@ -6,7 +6,7 @@ This document will use a concrete example to illustrate how to create and consum ## Distributable Format -Layer Changesets for the [mediatype](./media-types.md) `application/vnd.oci.image.layer.tar+gzip` MUST be packaged in [tar archive][tar-archive]. +Layer Changesets for the [mediatype](./media-types.md) `application/vnd.oci.image.layer.tar+gzip` MUST be packaged in a [tar archive][tar-archive] compressed with [gzip][gzip]. Layer Changesets for the [mediatype](./media-types.md) `application/vnd.oci.image.layer.tar+gzip` MUST NOT include duplicate entries for file paths in the resulting [tar archive][tar-archive]. ## Change Types @@ -318,3 +318,4 @@ It is implementation-defined whether or not implementations upload layers tagged [libarchive-tar]: https://github.com/libarchive/libarchive/wiki/ManPageTar5#POSIX_ustar_Archives [gnu-tar-standard]: http://www.gnu.org/software/tar/manual/html_node/Standard.html [tar-archive]: https://en.wikipedia.org/wiki/Tar_(computing) +[gzip]: http://www.zlib.org/rfc-gzip.html diff --git a/media-types.md b/media-types.md index 9bb360af1..f02407196 100644 --- a/media-types.md +++ b/media-types.md @@ -7,7 +7,7 @@ The following media types identify the formats described here and their referenc - `application/vnd.oci.image.manifest.v1+json`: [Image manifest format](manifest.md#image-manifest) - `application/vnd.oci.image.config.v1+json`: [Container config JSON](config.md) - `application/vnd.oci.image.layer.tar+gzip`: ["Layer", as a gzipped tar archive](layer.md) -- `application/vnd.oci.image.layer.nondistributable.tar+gzip`: ["Layer", as a gzipped tar that has distribution restrictions](layer.md#non-distributable-layers) +- `application/vnd.oci.image.layer.nondistributable.tar+gzip`: ["Layer", as a gzipped tar archive with distribution restrictions](layer.md#non-distributable-layers) ## Compatibility Matrix