Permalink
64 lines (40 sloc) 3.46 KB

OCI Image Media Types

The following media types identify the formats described here and their referenced resources:

Media Type Conflicts

Blob retrieval methods MAY return media type metadata. For example, a HTTP response might return a manifest with the Content-Type header set to application/vnd.oci.image.manifest.v1+json. Implementations MAY also have expectations for the blob's media type and digest (e.g. from a descriptor referencing the blob).

  • Implementations that do not have an expected media type for the blob SHOULD respect the returned media type.
  • Implementations that have an expected media type which matches the returned media type SHOULD respect the matched media type.
  • Implementations that have an expected media type which does not match the returned media type SHOULD:
    • Respect the expected media type if the blob matches the expected digest. Implementations MAY warn about the media type mismatch.
    • Return an error if the blob does not match the expected digest (as recommended for descriptors).
    • Return an error if they do not have an expected digest.

Compatibility Matrix

The OCI Image Specification strives to be backwards and forwards compatible when possible. Breaking compatibility with existing systems creates a burden on users whether they are build systems, distribution systems, container engines, etc. This section shows where the OCI Image Specification is compatible with formats external to the OCI Image and different versions of this specification.

application/vnd.oci.image.manifest.list.v1+json

Similar/related schema

application/vnd.oci.image.manifest.v1+json

Similar/related schema

application/vnd.oci.image.rootfs.tar.gzip

Interchangeable and fully compatible mime-types

application/vnd.oci.image.config.v1+json

Similar/related schema

Relations

The following figure shows how the above media types reference each other:

Descriptors are used for all references. 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.