Skip to content

Commit 9c73d72

Browse files
committed
Merge pull request #123 from philips/drop-registry-section
manifest.md: remove backwards compatibility section that refers to registries
2 parents a4abdf4 + 773be54 commit 9c73d72

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

manifest.md

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -239,25 +239,3 @@ Unlike the [Manifest List](#manifest-list), which contains information about a s
239239
}
240240
}
241241
```
242-
243-
# Backward compatibility
244-
245-
The registry will continue to accept uploads of manifests in both the old and new formats.
246-
247-
When pushing images, clients which support the new manifest format SHOULD first construct a manifest in the new format.
248-
If uploading this manifest fails, presumably because the registry only supports the old format, the client MAY fall back to uploading a manifest in the old format.
249-
250-
When pulling images, clients indicate support for this new version of the manifest format by sending the
251-
`application/vnd.oci.image.manifest.v1+json` and
252-
`application/vnd.oci.image.manifest.list.v1+json` media types in an `Accept` header when making a request to the `manifests` endpoint.
253-
Updated clients SHOULD check the `Content-Type` header to see whether the manifest returned from the endpoint is in the old format, or is an image manifest or manifest list in the new format.
254-
255-
If the manifest being requested uses the new format, and the appropriate media type is not present in an `Accept` header, the registry MUST assume that the client cannot handle the manifest as-is, and MUST rewrite it on the fly into the old format.
256-
If the object that would otherwise be returned is a manifest list, the registry MUST look up the appropriate manifest for the amd64 platform and linux OS, rewrite that manifest into the old format if necessary, and return the result to the client.
257-
If no suitable manifest is found in the manifest list, the registry will return a 404 error.
258-
259-
One of the challenges in rewriting manifests to the old format is that the old format involves an image configuration for each layer in the manifest, but the new format only provides one image configuration.
260-
To work around this, the registry MUST create synthetic image configurations for all layers except the top layer.
261-
These image configurations will not result in runnable images on their own, but only serve to fill in the parent chain in a compatible way.
262-
The IDs in these synthetic configurations will be derived from hashes of their respective blobs.
263-
The registry MUST create these configurations and their IDs using the same scheme as Docker 1.10 when it creates a legacy manifest to push to a registry which doesn't support the new format.

0 commit comments

Comments
 (0)